Skip to content

Commit

Permalink
Fixing undefined variable reference.
Browse files Browse the repository at this point in the history
Fixes #2078
  • Loading branch information
markstory committed Oct 10, 2011
1 parent 3f778d8 commit 455787a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Session/DatabaseSession.php
Expand Up @@ -138,7 +138,7 @@ public function gc($expires = null) {
if (!$expires) {
$expires = time();
}
return $this->_model->deleteAll(array($model->alias . ".expires <" => $expires), false, false);
return $this->_model->deleteAll(array($this->_model->alias . ".expires <" => $expires), false, false);
}

/**
Expand Down

0 comments on commit 455787a

Please sign in to comment.