diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 3007d9575..e8c3f9ac5 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -6293,7 +6293,9 @@ class AttributeTable extends AttributeDBField $sRes .= ""; foreach ($aRawData as $iCol => $cell) { - $sCell = str_replace("\n", "
\n", Str::pure2html((string)$cell)); + // Note: avoid the warning in case the cell is made of an array + $sCell = @Str::pure2html((string)$cell); + $sCell = str_replace("\n", "
\n", $sCell); $sRes .= "$sCell"; } $sRes .= ""; diff --git a/core/event.class.inc.php b/core/event.class.inc.php index 97d7d19c9..52b1bca89 100644 --- a/core/event.class.inc.php +++ b/core/event.class.inc.php @@ -264,8 +264,8 @@ class EventIssue extends Event } else { - // Not a string - $aPost[$sKey] = (string) $sValue; + // Not a string (avoid warnings in case the value cannot be easily casted into a string) + $aPost[$sKey] = @(string) $sValue; } } $this->Set('arguments_post', $aPost);