CRM-14230 : sanity check
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 26 May 2014 13:17:29 +0000 (18:47 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Mon, 26 May 2014 13:17:29 +0000 (18:47 +0530)
CRM/Core/Permission.php

index 2ed0969948d90b8529e1b406bfdd50f0f14cbad6..cca65ac93a02884476ec74c7bde8cd3c12c97cd8 100644 (file)
@@ -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;
   }
 
   /**