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:
Eric Lippmann 2025-04-29 12:08:56 +02:00 committed by GitHub
commit d0c03b84e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}