From: Matthew Wire Date: Tue, 6 Oct 2015 23:08:59 +0000 (+0100) Subject: Fix warning when user doesn't have edit permissions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c613b5fb7fc4172cc101186703455ad820dd71c3;p=civicrm-core.git Fix warning when user doesn't have edit permissions --- 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;