From d5b157ed942189ec5d4981e9ac3d0806782c55e1 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 24 Dec 2008 05:40:05 +0000 Subject: [PATCH] Fixing undefined variable in first if block branch, fixes #5921 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7954 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/controller/components/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/libs/controller/components/auth.php b/cake/libs/controller/components/auth.php index f5fc186f4..d1d4f94ce 100644 --- a/cake/libs/controller/components/auth.php +++ b/cake/libs/controller/components/auth.php @@ -673,7 +673,8 @@ class AuthComponent extends Object { */ function redirect($url = null) { if (!is_null($url)) { - $this->Session->write('Auth.redirect', $url); + $redir = $url; + $this->Session->write('Auth.redirect', $redir); } elseif ($this->Session->check('Auth.redirect')) { $redir = $this->Session->read('Auth.redirect'); $this->Session->delete('Auth.redirect');