fix a warning when session was destroyed and Session Handler is trying to write
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user