Fix redirection when changing user type to a not registered user (Closes #824)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 4 Jun 2008 20:32:59 +0000 (22:32 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 4 Jun 2008 20:32:59 +0000 (22:32 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetgrp.php

index 83bfdea..a64e2a1 100644 (file)
@@ -911,7 +911,10 @@ class XnetGrpModule extends PLModule
                 $mmlist->replace_email($ml, $user['email'], $email);
             }
         }
-        return $login;
+        if ($sub) {
+            return $login;
+        }
+        return $user['email'];
     }
 
     function handler_admin_member(&$page, $user)