From d8121b563a35d2dd6d296b26ca71dea90ee49394 Mon Sep 17 00:00:00 2001 From: odain Date: Fri, 21 Nov 2025 10:38:26 +0100 Subject: [PATCH] synchro code: fix Deprecated: strlen(): Passing null to parameter --- synchro/synchrodatasource.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index c0f824eff..46ad018f4 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -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('%s (%s)', Dict::S('Core:AttributeBlob'), utils::BytesToFriendlyFormat(strlen($value)))]; + $aRows[] = ['attcode' => $sKey, 'data' => sprintf('%s (%s)', Dict::S('Core:AttributeBlob'), utils::BytesToFriendlyFormat(utils::StrLen($value)))]; } else { $aRows[] = ['attcode' => $sKey, 'data' => utils::EscapeHtml($value)]; }