mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
added try/catch block to catch unused session is hasStackedData()
This commit is contained in:
parent
938e56b2c7
commit
1dc21f08ef
@ -316,7 +316,11 @@ class DebugBar implements ArrayAccess
|
||||
*/
|
||||
public function hasStackedData()
|
||||
{
|
||||
$http = $this->initStackSession();
|
||||
try {
|
||||
$http = $this->initStackSession();
|
||||
} catch (DebugBarException $e) {
|
||||
return false;
|
||||
}
|
||||
return count($http->getSessionValue($this->stackSessionNamespace)) > 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user