Skip to content
Browse files

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
  • Loading branch information...
1 parent b063f22 commit d5b157ed942189ec5d4981e9ac3d0806782c55e1 @nateabele nateabele committed Dec 24, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/libs/controller/components/auth.php
View
3 cake/libs/controller/components/auth.php
@@ -673,7 +673,8 @@ function user($key = null) {
*/
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');

0 comments on commit d5b157e

Please sign in to comment.
Something went wrong with that request. Please try again.