Bulk delete: fixed a regression due to transaction management + cosmetics

Error management: cope with context data that are not a string

SVN:trunk[450]
This commit is contained in:
Romain Quetiez
2010-06-09 15:57:28 +00:00
parent 668fbcadc6
commit bdabd3f51a
2 changed files with 24 additions and 19 deletions

View File

@@ -187,13 +187,21 @@ class EventIssue extends Event
$aPost = array();
foreach($GLOBALS['_POST'] as $sKey => $sValue)
{
if (strlen($sValue) < 256)
if (is_string($sValue))
{
$aPost[$sKey] = $sValue;
if (strlen($sValue) < 256)
{
$aPost[$sKey] = $sValue;
}
else
{
$aPost[$sKey] = "!long string: ".strlen($sValue). " chars";
}
}
else
{
$aPost[$sKey] = "!long string: ".strlen($sValue). " chars";
// Not a string
$aPost[$sKey] = (string) $sValue;
}
}
$this->Set('arguments_post', $aPost);