projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d5c9b1
)
Fix warning when user doesn't have edit permissions
author
Matthew Wire
<devel@mrwire.co.uk>
Tue, 6 Oct 2015 23:08:59 +0000
(
00:08
+0100)
committer
Matthew Wire
<devel@mrwire.co.uk>
Tue, 6 Oct 2015 23:08:59 +0000
(
00:08
+0100)
CRM/Event/BAO/Event.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Event/BAO/Event.php
b/CRM/Event/BAO/Event.php
index bed2f55a8f2956625212081dd26fc43e8a6f0507..d7653063ab0e280cae4baa250ae3439fd44d7b60 100644
(file)
--- 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;