Fix warnings about unexpected parameter array values type in ACL::getFullSelectorHTML

- Addresses https://github.com/friendica/friendica/issues/7676#issuecomment-560503744
This commit is contained in:
Hypolite Petovan 2019-12-03 06:59:51 -05:00
parent b152d0557b
commit f989c331a3
3 changed files with 12 additions and 13 deletions

View 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 = '';
}