mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
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
This commit is contained in:
parent
e9bd7aea6a
commit
3129d5411f
1 changed files with 2 additions and 3 deletions
|
@ -673,9 +673,8 @@ class AuthComponent extends Object {
|
|||
*/
|
||||
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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue