Fixes: (#5462)
- fixed E_NOTICE about missing array element "page-flags-raw" (should be "page_flags_raw"?) - same with account-type-raw -> account_type_raw - added spaces to nicely indent code
This commit is contained in:
parent
a27ef8d0c9
commit
ffc70bee17
|
@ -1820,12 +1820,10 @@ function admin_page_users(App $a)
|
|||
ACCOUNT_TYPE_COMMUNITY => L10n::t('Community Forum')
|
||||
];
|
||||
|
||||
|
||||
|
||||
$e['page-flags-raw'] = $e['page-flags'];
|
||||
$e['page_flags_raw'] = $e['page-flags'];
|
||||
$e['page-flags'] = $page_types[$e['page-flags']];
|
||||
|
||||
$e['account-type-raw'] = ($e['page_flags_raw'] == 0) ? $e['account-type'] : -1;
|
||||
$e['account_type_raw'] = ($e['page_flags_raw'] == 0) ? $e['account-type'] : -1;
|
||||
$e['account-type'] = ($e['page_flags_raw'] == 0) ? $account_types[$e['account-type']] : "";
|
||||
|
||||
$e['register_date'] = Temporal::getRelativeDate($e['register_date']);
|
||||
|
@ -1834,8 +1832,10 @@ function admin_page_users(App $a)
|
|||
$e['is_admin'] = in_array($e['email'], $adminlist);
|
||||
$e['is_deletable'] = (intval($e['uid']) != local_user());
|
||||
$e['deleted'] = ($e['account_removed'] ? Temporal::getRelativeDate($e['account_expires_on']) : False);
|
||||
|
||||
return $e;
|
||||
};
|
||||
|
||||
$users = array_map($_setup_users, $users);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue