From 12b7bce1cc80b34e68256da7c38668c840ee831d Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Fri, 20 Apr 2018 14:27:36 +0200 Subject: [PATCH] admin users, don't set account-type if page flag isn't PAGE_NORMAL --- mod/admin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 79a476d3a9..3debb57bed 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1753,8 +1753,9 @@ function admin_page_users(App $a) $e['page-flags-raw'] = $e['page-flags']; $e['page-flags'] = $page_types[$e['page-flags']]; - $e['account-type-raw'] = $e['account-type']; - $e['account-type'] = $account_types[$e['account-type']]; + + $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']); $e['login_date'] = Temporal::getRelativeDate($e['login_date']); -- 2.39.5