Fixes an invalid use of a reference.
authorVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 18 May 2009 22:38:31 +0000 (00:38 +0200)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Mon, 18 May 2009 22:38:31 +0000 (00:38 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.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('');