fix PHP 8.0 TypeError: implode(): Argument #1 ($pieces) must be of type array, string given

This commit is contained in:
Ralf Becker 2021-11-22 08:36:55 +01:00
parent 8020301a84
commit dd74e87a0c

View File

@ -818,9 +818,9 @@ class importexport_definitions_ui
if($this->can_edit($content))
{
$content['owner'] = $content['just_me'] || !$GLOBALS['egw']->acl->check('share_definitions', Acl::READ,'importexport') ?
($content['owner'] ? $content['owner'] : $GLOBALS['egw_info']['user']['account_id']) :
($content['owner'] ?: $GLOBALS['egw_info']['user']['account_id']) :
null;
$content['allowed_users'] = $content['just_me'] ? '' : ($content['all_users'] ? 'all' : implode(',',$content['allowed_users']));
$content['allowed_users'] = $content['just_me'] ? '' : ($content['all_users'] ? 'all' : implode(',', (array)$content['allowed_users']));
unset($content['just_me']);
}