From: fabrixxm Date: Fri, 20 Apr 2018 12:27:36 +0000 (+0200) Subject: admin users, don't set account-type if page flag isn't PAGE_NORMAL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=12b7bce1cc80b34e68256da7c38668c840ee831d;p=friendica.git admin users, don't set account-type if page flag isn't PAGE_NORMAL --- 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']);