From 9f0f552c2b5f3d84e385130b80d6a0e225a9715e Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 14 Aug 2013 02:14:07 +0530 Subject: [PATCH] notice fixes --- CRM/Event/BAO/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index f399d2dcea..4cd6f5349c 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -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; -- 2.25.1