From 684b0b228bf064e88ac8a9ab183ed8d011e25fe2 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Mon, 26 May 2014 18:47:29 +0530 Subject: [PATCH] CRM-14230 : sanity check --- CRM/Core/Permission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /** -- 2.25.1