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)
|
public function write($id, $data)
|
||||||
{
|
{
|
||||||
|
if (empty($this->db)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$time = time();
|
$time = time();
|
||||||
|
|
||||||
if(! isset($this->wstmt)) {
|
if(! isset($this->wstmt)) {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class BpmnWorkflowTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public static function tearDownAfterClass()
|
public static function tearDownAfterClass()
|
||||||
{
|
{
|
||||||
return false;
|
//return false;
|
||||||
//cleaning DB
|
//cleaning DB
|
||||||
foreach (self::$uids as $prjUid) {
|
foreach (self::$uids as $prjUid) {
|
||||||
$bwap = Project\Adapter\BpmnWorkflow::load($prjUid);
|
$bwap = Project\Adapter\BpmnWorkflow::load($prjUid);
|
||||||
|
|||||||
Reference in New Issue
Block a user