summaryrefslogtreecommitdiffstats
path: root/inc/user.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-29 12:58:01 +0200
committerSimon Rettberg2018-03-29 12:58:01 +0200
commit24cfbb62c144c1ffecd2be8be3bfb04705d801dd (patch)
tree6efd5b82484b40b28357fdc8ac3d23d77939a899 /inc/user.inc.php
parentFix warnings (diff)
downloadslx-admin-24cfbb62c144c1ffecd2be8be3bfb04705d801dd.tar.gz
slx-admin-24cfbb62c144c1ffecd2be8be3bfb04705d801dd.tar.xz
slx-admin-24cfbb62c144c1ffecd2be8be3bfb04705d801dd.zip
[inc/User] Make userid type int to fix string compares
Diffstat (limited to 'inc/user.inc.php')
-rw-r--r--inc/user.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php
index 2ba1bad2..27a907c3 100644
--- a/inc/user.inc.php
+++ b/inc/user.inc.php
@@ -99,6 +99,7 @@ class User
self::$user = Database::queryFirst('SELECT * FROM user WHERE userid = :uid LIMIT 1', array(':uid' => $uid));
if (self::$user === false)
self::logout();
+ settype(self::$user['userid'], 'int');
return true;
}
return false;