CRM-14185 - Searching for a group that doesn't match an existing group gives a warnin...
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 22 Jul 2015 10:32:34 +0000 (16:02 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 22 Jul 2015 10:32:34 +0000 (16:02 +0530)
CRM/Utils/JSON.php

index e92109acb27f69e3981efadc3c0e127dd66be8b8..f210f1dfa6fcfc68fdd8dd9eed98b0f118f5c0a7 100644 (file)
@@ -70,7 +70,7 @@ class CRM_Utils_JSON {
     $sOutput .= '"iTotalRecords": ' . $iTotal . ', ';
     $sOutput .= '"iTotalDisplayRecords": ' . $iFilteredTotal . ', ';
     $sOutput .= '"aaData": [ ';
-    foreach ($params as $key => $value) {
+    foreach ((array) $params as $key => $value) {
       $addcomma = FALSE;
       $sOutput .= "[";
       foreach ($selectorElements as $element) {