]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Fix warnings about unexpected parameter array values type in ACL::getFullSelectorHTML
[friendica.git] / mod / events.php
index a642f166510cff22a2da9ef9c97a6063107e720a..5a5a22d3186bd194a079dc407966a30c7e7ef472 100644 (file)
@@ -490,10 +490,8 @@ function events_content(App $a)
                $fhour   = !empty($orig_event) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'H') : '00';
                $fminute = !empty($orig_event) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'i') : '00';
 
-               $perms = ACL::getDefaultUserPermissions($orig_event);
-
                if (!$cid && in_array($mode, ['new', 'copy'])) {
-                       $acl = ACL::getFullSelectorHTML($a->page, $a->user, false, $perms);
+                       $acl = ACL::getFullSelectorHTML($a->page, $a->user, false, ACL::getDefaultUserPermissions($orig_event));
                } else {
                        $acl = '';
                }