projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Removes AX synchronisation from profile.
[platal.git]
/
classes
/
user.php
diff --git
a/classes/user.php
b/classes/user.php
index
5909053
..
819a7a6
100644
(file)
--- a/
classes/user.php
+++ b/
classes/user.php
@@
-26,6
+26,10
@@
class User extends PlUser
{
global $globals;
+ if (!$login) {
+ throw new UserNotFoundException();
+ }
+
// If $data is an integer, fetches directly the result.
if (is_numeric($login)) {
$res = XDB::query("SELECT user_id FROM auth_user_md5 WHERE user_id = {?}", $login);