From 635c8d7450866cb8b77a6d1d42260257e286a940 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 4 Sep 2018 21:24:30 +0000 Subject: [PATCH] Beautified the code --- mod/events.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/events.php b/mod/events.php index 21cf70d20f..c4d40252d3 100644 --- a/mod/events.php +++ b/mod/events.php @@ -482,8 +482,8 @@ function events_content(App $a) { $perms = ACL::getDefaultUserPermissions($orig_event); - if ($mode === 'new' || $mode === 'copy') { - $acl = ($cid ? '' : ACL::getFullSelectorHTML($a->user, false, $orig_event)); + if (!$cid && in_array($mode, ['new', 'copy'])) { + $acl = ACL::getFullSelectorHTML($a->user, false, $orig_event); } else { $acl = ''; } -- 2.39.5