From a794f4e110f9b1da92ee3163be7ddb1cca30cc36 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Mon, 5 Nov 2012 13:00:28 -0400 Subject: [PATCH] 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 --- gulliver/methods/genericAjax.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gulliver/methods/genericAjax.php b/gulliver/methods/genericAjax.php index 919db5b73..be58473b0 100755 --- a/gulliver/methods/genericAjax.php +++ b/gulliver/methods/genericAjax.php @@ -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;