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::$error = array();
|
||||
self::$error = false;
|
||||
return self::started();
|
||||
}
|
||||
|
||||
|
@ -357,7 +357,7 @@ class CakeSession {
|
|||
*/
|
||||
public static function valid() {
|
||||
if (self::read('Config')) {
|
||||
if (self::_validAgentAndTime() && self::$error == false) {
|
||||
if (self::_validAgentAndTime() && self::$error === false) {
|
||||
self::$valid = true;
|
||||
} else {
|
||||
self::$valid = false;
|
||||
|
|
Loading…
Reference in a new issue