Skip to content
Permalink
Browse files

Fixing issue where $error would be set to an array.

  • Loading branch information...
markstory committed Jul 27, 2010
1 parent 19d8c9e commit 272b327dc30dc5db8e599bd712e78fc06fdbdf94
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/cake_session.php
@@ -241,7 +241,7 @@ public static function start() {
self::_checkValid();
}
self::$error = array();
self::$error = false;
return self::started();
}
@@ -357,7 +357,7 @@ public static function error() {
*/
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;
@@ -384,7 +384,7 @@ protected static function _validAgentAndTime() {
}
/**
* Get / Set the userAgent
* Get / Set the userAgent
*
* @param string $userAgent Set the userAgent
* @return void

0 comments on commit 272b327

Please sign in to comment.
You can’t perform that action at this time.