From 697f11ef460689b328d4514816e7ae937f20bd5f Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 22 Jul 2015 16:02:34 +0530 Subject: [PATCH] CRM-14185 - Searching for a group that doesn't match an existing group gives a warning in the logs --- CRM/Utils/JSON.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/JSON.php b/CRM/Utils/JSON.php index e92109acb2..f210f1dfa6 100644 --- a/CRM/Utils/JSON.php +++ b/CRM/Utils/JSON.php @@ -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) { -- 2.25.1