diff --git a/core/dbobject.class.php b/core/dbobject.class.php index d94759f4c4..5b1e3dd187 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -612,8 +612,11 @@ protected function _Set($sAttCode, $value) public function Set($sAttCode, $value) { if (!utils::StartsWith(get_class($this), 'CMDBChange') && $this->GetKey() > 0) { - // not all the values have __to_string() so print_r is sed and preferred over var_export for the handling or circular references - $this->LogCRUDEnter(__METHOD__, "$sAttCode => ".print_r($value, true)); + if (is_object($value) || is_array($value)) { + $this->LogCRUDEnter(__METHOD__, "$sAttCode => object or array"); + } else { + $this->LogCRUDEnter(__METHOD__, "$sAttCode => ".print_r($value, true)); + } } $sMessage = $this->IsReadOnly();