Displays email redirections for registered users when using an user id in the user...
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Tue, 22 Apr 2008 17:56:53 +0000 (19:56 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Tue, 22 Apr 2008 17:56:53 +0000 (19:56 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/admin.php

index ef9fa0e..d878f03 100644 (file)
@@ -406,7 +406,8 @@ class AdminModule extends PLModule
             }
             $mr = $r->fetchOneAssoc();
 
-            if (!is_numeric($login)) { //user has a forlife
+            // Checks the user has a forlife, as non-registered user can't have redirections.
+            if ($mr['forlife']) {
                 $redirect = new Redirect($mr['user_id']);
             }