mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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
This commit is contained in:
parent
b063f22f31
commit
d5b157ed94
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue