From: deb.monish Date: Mon, 14 Mar 2016 10:56:30 +0000 (+0530) Subject: notice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=38c304a54f26b7214bbcf77eb179a6faf5cd9845;p=civicrm-core.git notice fix --- 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 &&