fix a warning when session was destroyed and Session Handler is trying to write

This commit is contained in:
Erik Amaru Ortiz
2014-02-27 16:43:50 -04:00
parent 9a0245fe58
commit 3826b1caf1
2 changed files with 5 additions and 1 deletions

View File

@@ -165,6 +165,10 @@ class PmSessionHandler //implements SessionHandlerInterface
*/
public function write($id, $data)
{
if (empty($this->db)) {
return null;
}
$time = time();
if(! isset($this->wstmt)) {