aboutsummaryrefslogtreecommitdiff
path: root/login-ajax.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 16:48:53 +0200
committerCamil Staps2016-07-27 17:08:12 +0200
commit21455bfd1004c4a3153050ac5995b8dc680c2042 (patch)
treeb448f9d94cd9b6addb6d6b391001c418243cc13d /login-ajax.php
parentRemoved error reporting (diff)
Class names start with a capital
Diffstat (limited to 'login-ajax.php')
-rw-r--r--login-ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-ajax.php b/login-ajax.php
index cf9eb1b..baab859 100644
--- a/login-ajax.php
+++ b/login-ajax.php
@@ -34,7 +34,7 @@ if (!isset($_SESSION['login']) || $_SESSION['login'] === false) {
die();
}
-$_user = new user($_pdo, $_SESSION['login']);
+$_user = new User($_pdo, $_SESSION['login']);
if (defined('REQUIRE_ADMIN') && REQUIRE_ADMIN && !$_user->isAdmin()) {
print(json_encode(['success' => false, 'message' => 'You need to be an administrator.']));