]> git.mxchange.org Git - friendica.git/commitdiff
Beautified the code
authorMichael <heluecht@pirati.ca>
Tue, 4 Sep 2018 21:24:30 +0000 (21:24 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 4 Sep 2018 21:24:30 +0000 (21:24 +0000)
mod/events.php

index 21cf70d20f59d4e7b51512eee483f05fbde33357..c4d40252d37c72e905ec2175de5fe512a0c4cc51 100644 (file)
@@ -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 = '';
                }