mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
synchro code: fix Deprecated: strlen(): Passing null to parameter
This commit is contained in:
@@ -2747,7 +2747,7 @@ class SynchroReplica extends DBObject implements iDisplay
|
||||
$aRows = [];
|
||||
foreach ($aData as $sKey => $value) {
|
||||
if (strpos(CMDBSource::GetFieldType($sSQLTable, $sKey), 'blob') !== false) {
|
||||
$aRows[] = ['attcode' => $sKey, 'data' => sprintf('<i>%s (%s)</i>', Dict::S('Core:AttributeBlob'), utils::BytesToFriendlyFormat(strlen($value)))];
|
||||
$aRows[] = ['attcode' => $sKey, 'data' => sprintf('<i>%s (%s)</i>', Dict::S('Core:AttributeBlob'), utils::BytesToFriendlyFormat(utils::StrLen($value)))];
|
||||
} else {
|
||||
$aRows[] = ['attcode' => $sKey, 'data' => utils::EscapeHtml($value)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user