]> git.mxchange.org Git - friendica.git/commitdiff
admin users, don't set account-type if page flag isn't PAGE_NORMAL
authorfabrixxm <fabrix.xm@gmail.com>
Fri, 20 Apr 2018 12:27:36 +0000 (14:27 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Fri, 20 Apr 2018 12:27:36 +0000 (14:27 +0200)
mod/admin.php

index 79a476d3a94ab9b3ae25c2b5c98101889df7b88b..3debb57bedf2072d2b1d02de3918df7ac9b5f093 100644 (file)
@@ -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']);