From: Florent Bruneau Date: Thu, 18 Dec 2008 20:55:33 +0000 (+0100) Subject: Another notice. X-Git-Tag: xorg/0.10.1~176 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2f41039553d2137c094d58074d918f37f3a4534a;p=platal.git Another notice. Signed-off-by: Florent Bruneau --- diff --git a/include/security.inc.php b/include/security.inc.php index 64e3714..b202df4 100644 --- a/include/security.inc.php +++ b/include/security.inc.php @@ -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('');