diff --git a/application/controllers/Admins.php b/application/controllers/Admins.php index c153b5e9..4e99f363 100644 --- a/application/controllers/Admins.php +++ b/application/controllers/Admins.php @@ -52,6 +52,13 @@ class Admins extends EA_Controller { $role_slug = session('role_slug'); + script_vars([ + 'timezones' => $this->timezones->to_array(), + 'user_id' => $user_id, + 'role_slug' => $role_slug, + 'min_password_length' => MIN_PASSWORD_LENGTH, + ]); + html_vars([ 'page_title' => lang('admins'), 'active_menu' => PRIV_USERS, @@ -100,7 +107,7 @@ class Admins extends EA_Controller { { try { - $admin = json_decode(request('admin'), TRUE); + $admin = request('admin'); if (cannot('add', PRIV_USERS)) { @@ -127,7 +134,7 @@ class Admins extends EA_Controller { { try { - $admin = json_decode(request('admin'), TRUE); + $admin = request('admin'); if (cannot('edit', PRIV_USERS)) { diff --git a/application/views/pages/admins.php b/application/views/pages/admins.php index ef9460b1..0c74795e 100755 --- a/application/views/pages/admins.php +++ b/application/views/pages/admins.php @@ -189,9 +189,9 @@
-
- -