N°4517 - PHP 8.1: Replace strlen() usages with utils::StrLen() for compatibility

This commit is contained in:
Molkobain
2022-05-18 19:59:20 +02:00
parent d3fb08ba81
commit 60aaa01e2e
3 changed files with 10 additions and 10 deletions

View File

@@ -423,11 +423,11 @@ class ButtonUIBlockFactory extends AbstractUIBlockFactory
$oButton->SetActionType($sActionType)
->SetColor($sColor);
if (strlen($sValue) > 0) {
if (utils::StrLen($sValue) > 0) {
$oButton->SetValue($sValue);
}
if (strlen($sName) > 0) {
if (utils::StrLen($sName) > 0) {
$oButton->SetName($sName);
}