mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-28 22:54:12 +01:00
N°5302 - Replace deprecated php strlen usages (#308)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user