mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DeployFormsBug7530: Do not pass null values to strlen
Since PHP 8.0 passing of null to strlen is deprecated and hence must be avoided.
This commit is contained in:
parent
2423fad54c
commit
11a10be9f8
@ -13,7 +13,7 @@ trait DeployFormsBug7530
|
|||||||
if (parent::hasBeenSubmitted()) {
|
if (parent::hasBeenSubmitted()) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return \strlen($this->getSentValue('confirm_7530')) > 0;
|
return strlen($this->getSentValue('confirm_7530', '')) > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user