N°5302 - Replace deprecated php strlen usages (#308)

This commit is contained in:
bdalsass
2022-07-08 10:27:52 +02:00
committed by GitHub
parent 65c6e99a3f
commit 33054d306d
6 changed files with 53 additions and 26 deletions

View File

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