From: Vincent Zanotti Date: Tue, 22 Apr 2008 17:56:53 +0000 (+0200) Subject: Displays email redirections for registered users when using an user id in the user... X-Git-Tag: core/1.0.0~239 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ebd9cb89305025a3c5faf0ee5ab5d1ee9e8d2c1c;p=platal.git Displays email redirections for registered users when using an user id in the user administration section. Signed-off-by: Vincent Zanotti --- diff --git a/modules/admin.php b/modules/admin.php index ef9fa0e..d878f03 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -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']); }