diff options
author | Simon Rettberg | 2018-03-29 12:58:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-03-29 12:58:01 +0200 |
commit | 24cfbb62c144c1ffecd2be8be3bfb04705d801dd (patch) | |
tree | 6efd5b82484b40b28357fdc8ac3d23d77939a899 /inc/user.inc.php | |
parent | Fix warnings (diff) | |
download | slx-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.php | 1 |
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; |