From: Pratik Joshi Date: Mon, 26 May 2014 13:17:29 +0000 (+0530) Subject: CRM-14230 : sanity check X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=684b0b228bf064e88ac8a9ab183ed8d011e25fe2;p=civicrm-core.git CRM-14230 : sanity check --- diff --git a/CRM/Core/Permission.php b/CRM/Core/Permission.php index 2ed0969948..cca65ac93a 100644 --- a/CRM/Core/Permission.php +++ b/CRM/Core/Permission.php @@ -280,7 +280,7 @@ class CRM_Core_Permission { } $groups = self::ufGroup($type); - return in_array($gid, $groups) ? TRUE : FALSE; + return !empty($groups) && in_array($gid, $groups) ? TRUE : FALSE; } /**