notice fixes
authorkurund <kurund@civicrm.org>
Tue, 13 Aug 2013 20:44:07 +0000 (02:14 +0530)
committerkurund <kurund@civicrm.org>
Tue, 13 Aug 2013 20:44:07 +0000 (02:14 +0530)
CRM/Event/BAO/Event.php

index f399d2dcea677befac29490cd8413e897879218e..4cd6f5349cebb4bd45d1e1c20c411739646c0e4b 100644 (file)
@@ -791,7 +791,7 @@ WHERE civicrm_event.is_active = 1
     );
     if ($enable_cart) {}
     while ($dao->fetch()) {
-      if (in_array($dao->event_id, $permissions)) {
+      if (!empty($permissions) && in_array($dao->event_id, $permissions)) {
         $info = array();
         $info['uid'] = "CiviCRM_EventID_{$dao->event_id}_" . md5($config->userFrameworkBaseURL) . $url;