mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing issue where $error would be set to an array.
This commit is contained in:
parent
19d8c9e6bb
commit
272b327dc3
1 changed files with 3 additions and 3 deletions
|
@ -241,7 +241,7 @@ class CakeSession {
|
||||||
self::_checkValid();
|
self::_checkValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
self::$error = array();
|
self::$error = false;
|
||||||
return self::started();
|
return self::started();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@ class CakeSession {
|
||||||
*/
|
*/
|
||||||
public static function valid() {
|
public static function valid() {
|
||||||
if (self::read('Config')) {
|
if (self::read('Config')) {
|
||||||
if (self::_validAgentAndTime() && self::$error == false) {
|
if (self::_validAgentAndTime() && self::$error === false) {
|
||||||
self::$valid = true;
|
self::$valid = true;
|
||||||
} else {
|
} else {
|
||||||
self::$valid = false;
|
self::$valid = false;
|
||||||
|
@ -384,7 +384,7 @@ class CakeSession {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get / Set the userAgent
|
* Get / Set the userAgent
|
||||||
*
|
*
|
||||||
* @param string $userAgent Set the userAgent
|
* @param string $userAgent Set the userAgent
|
||||||
* @return void
|
* @return void
|
||||||
|
|
Loading…
Reference in a new issue