BUG 9998 New relic reported errors ProcessMaker 2.0.43 + parche SOLVED

- Only the "Error 4" was fixed, missing validation when the data is not an array
- Added validation when the data is not an array
This commit is contained in:
Julio Cesar Laura
2012-11-05 13:00:28 -04:00
parent 96ff96b3f6
commit a794f4e110

View File

@@ -14,6 +14,9 @@ if( isset($request) ){
}
if (is_array($_SESSION[$_POST["formID"]][$_POST["gridname"]])) {
if (!is_array($_SESSION[$_POST["formID"]][$_POST["gridname"]])) {
$_SESSION[$_POST["formID"]][$_POST["gridname"]] = (array)$_SESSION[$_POST["formID"]][$_POST["gridname"]];
}
ksort($_SESSION[$_POST["formID"]][$_POST["gridname"]]);
$oFields = array();
$initialKey = 1;