From: Michael Date: Tue, 4 Sep 2018 21:24:30 +0000 (+0000) Subject: Beautified the code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=635c8d7450866cb8b77a6d1d42260257e286a940;p=friendica.git Beautified the code --- 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 = ''; }