Skip to content

Commit

Permalink
Reverting changes made in [60ab980]. Restoring use of isset() and $_S…
Browse files Browse the repository at this point in the history
…ESSION = null. Fixes #971
  • Loading branch information
markstory committed Jul 31, 2010
1 parent 522446e commit 9f718de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/cake_session.php
Expand Up @@ -227,7 +227,7 @@ function start() {
* @return boolean True if session has been started.
*/
function started() {
if (!empty($_SESSION) && session_id()) {
if (isset($_SESSION) && session_id()) {
return true;
}
return false;
Expand Down Expand Up @@ -454,7 +454,7 @@ function write($name, $value) {
* @access public
*/
function destroy() {
$_SESSION = array();
$_SESSION = null;
$this->__construct($this->path);
$this->start();
$this->renew();
Expand Down

0 comments on commit 9f718de

Please sign in to comment.