Another notice.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 18 Dec 2008 20:55:33 +0000 (21:55 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 18 Dec 2008 20:55:33 +0000 (21:55 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/security.inc.php

index 64e3714..b202df4 100644 (file)
@@ -85,7 +85,8 @@ function check_redirect($red = null)
 {
     require_once 'emails.inc.php';
     if (is_null($red)) {
-        $red = new Redirect(S::user());
+        $user = S::user();
+        $red = new Redirect($user);
     }
     if ($red->get_uid() == S::v('uid')) {
         $_SESSION['no_redirect'] = !$red->other_active('');