Merge branch 'fusionax' into account
authorVincent Zanotti <vincent.zanotti@m4x.org>
Sat, 11 Apr 2009 01:20:01 +0000 (03:20 +0200)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Sat, 11 Apr 2009 01:20:01 +0000 (03:20 +0200)
Conflicts:
classes/user.php

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
classes/user.php

index d048e5a..c533bd1 100644 (file)
@@ -29,6 +29,10 @@ class User extends PlUser
     {
         global $globals;
 
+        if (!$login) {
+            throw new UserNotFoundException();
+        }
+
         if ($login instanceof User) {
             $machin->id();
         }