From: Vincent Zanotti Date: Sat, 11 Apr 2009 01:22:54 +0000 (+0200) Subject: Fixes module 'admin' (handler 'user') when no login is provided. X-Git-Tag: xorg/1.0.0~332^2~336 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2ff7e02074cc480b34c355ccbe11f91b65e5ce2b;p=platal.git Fixes module 'admin' (handler 'user') when no login is provided. Signed-off-by: Vincent Zanotti --- diff --git a/modules/admin.php b/modules/admin.php index 82344c7..1caaa6c 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -377,6 +377,10 @@ class AdminModule extends PLModule // Loads the user identity using the environment. $user = User::get($login); + if (!$user) { + return; + } + $login = $user->login(); $registered = ($user->state != 'pending');