Skip to content

Commit

Permalink
fix(attach) : compatibility php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos authored and J9rem committed Aug 5, 2022
1 parent cca52bc commit 21673c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/attach/libs/attach.lib.php
Expand Up @@ -453,10 +453,10 @@ public function CheckParams()
if ($this->isPicture() && empty($this->desc)) {
$this->attachErr = '<div class="alert alert-danger"><strong>' . _t('ATTACH_ACTION_ATTACH') . '</strong> : ' . _t('ATTACH_PARAM_DESC_REQUIRED') . '.</div>' . "\n";
}
if (!empty($this->width) && !ctype_digit($this->width)) {
if (!empty($this->width) && !ctype_digit(strval($this->width))) {
$this->attachErr = '<div class="alert alert-danger"><strong>' . _t('ATTACH_ACTION_ATTACH') . '</strong> : ' . _t('ATTACH_PARAM_WIDTH_NOT_NUMERIC') . '.</div>' . "\n";
}
if (!empty($this->height) && !ctype_digit($this->height)) {
if (!empty($this->height) && !ctype_digit(strval($this->height))) {
$this->attachErr = '<div class="alert alert-danger"><strong>' . _t('ATTACH_ACTION_ATTACH') . '</strong> : ' . _t('ATTACH_PARAM_HEIGHT_NOT_NUMERIC') . '.</div>' . "\n";
}

Expand Down

0 comments on commit 21673c3

Please sign in to comment.