mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Suppressed warnings due to the error reporting. When one of the arguments in the call stack is an array, a warning (Conversion of an array into a string) is issued at the time the EventIssue is being recorded. When a posted parameter is an array, the same warning is issued at the time and EventIssue is being displayed.
SVN:trunk[4608]
This commit is contained in:
@@ -6293,7 +6293,9 @@ class AttributeTable extends AttributeDBField
|
||||
$sRes .= "<TR>";
|
||||
foreach ($aRawData as $iCol => $cell)
|
||||
{
|
||||
$sCell = str_replace("\n", "<br>\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", "<br>\n", $sCell);
|
||||
$sRes .= "<TD>$sCell</TD>";
|
||||
}
|
||||
$sRes .= "</TR>";
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user