From 38c304a54f26b7214bbcf77eb179a6faf5cd9845 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Mon, 14 Mar 2016 16:26:30 +0530 Subject: [PATCH] notice fix --- CRM/Utils/Array.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index 17fc32963b..0ac816af05 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -1034,6 +1034,9 @@ class CRM_Utils_Array { * @return void */ public static function formatArrayKeys(&$array) { + if (!is_array($array)) { + return; + } $keys = array_keys($array, 1); if (count($keys) > 1 || (count($keys) == 1 && -- 2.25.1