diff --git a/admin/pages/accounts.php b/admin/pages/accounts.php index 214b82f0..4d410f11 100644 --- a/admin/pages/accounts.php +++ b/admin/pages/accounts.php @@ -13,6 +13,9 @@ use MyAAC\Models\Player; defined('MYAAC') or die('Direct access not allowed!'); $title = 'Account editor'; + +csrfProtect(); + $admin_base = ADMIN_URL . '?p=accounts'; $use_datatable = true; @@ -82,7 +85,7 @@ else if (isset($_REQUEST['search'])) { $account = new OTS_Account(); $account->load($id); - if (isset($account, $_POST['save']) && $account->isLoaded()) { + if (isset($_POST['save']) && $account->isLoaded()) { $error = false; $_error = ''; @@ -289,6 +292,7 @@ else if (isset($_REQUEST['search'])) {