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:
Romain Quetiez
2017-03-22 12:43:12 +00:00
parent d22d657886
commit 435a177283
2 changed files with 5 additions and 3 deletions

View File

@@ -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>";

View File

@@ -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);