From c613b5fb7fc4172cc101186703455ad820dd71c3 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Wed, 7 Oct 2015 00:08:59 +0100 Subject: [PATCH] Fix warning when user doesn't have edit permissions --- CRM/Event/BAO/Event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index bed2f55a8f..d7653063ab 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -475,7 +475,8 @@ $event_summary_limit } $eventSummary['events'][$dao->id][$property] = $set; - if (in_array($dao->id, $permissions[CRM_Core_Permission::EDIT])) { + if (is_array($permissions[CRM_Core_Permission::EDIT]) + && in_array($dao->id, $permissions[CRM_Core_Permission::EDIT])) { $eventSummary['events'][$dao->id]['configure'] = CRM_Utils_System::url('civicrm/admin/event', "action=update&id=$dao->id&reset=1"); } break; -- 2.25.1