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