From: kurund Date: Tue, 13 Aug 2013 20:44:07 +0000 (+0530) Subject: notice fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9f0f552c2b5f3d84e385130b80d6a0e225a9715e;p=civicrm-core.git notice fixes --- 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;