Skip to content
Browse files

Correcting return value for Auth::redirect(), fixes #5893

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7930 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
1 parent e9bd7ae commit 3129d5411fe325fcab75024e89463fd9367e5c8d @nateabele nateabele committed Dec 17, 2008
Showing with 2 additions and 3 deletions.
  1. +2 −3 cake/libs/controller/components/auth.php
View
5 cake/libs/controller/components/auth.php
@@ -673,9 +673,8 @@ function user($key = null) {
*/
function redirect($url = null) {
if (!is_null($url)) {
- return $this->Session->write('Auth.redirect', $url);
- }
- if ($this->Session->check('Auth.redirect')) {
+ $this->Session->write('Auth.redirect', $url);
+ } elseif ($this->Session->check('Auth.redirect')) {
$redir = $this->Session->read('Auth.redirect');
$this->Session->delete('Auth.redirect');

0 comments on commit 3129d54

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