CombinedAPI bugfix

This commit is contained in:
Daniil Gentili 2019-05-10 21:08:09 +02:00
parent a890789a5d
commit d1be0834cc

View File

@ -35,7 +35,7 @@ abstract class CombinedEventHandler
{
$keys = method_exists($this, '__magic_sleep') ? $this->__magic_sleep() : get_object_vars($this);
unset($keys['CombinedAPI']);
if (isset($this->CombinedAPI)) {
if (isset($this->CombinedAPI) && $this->CombinedAPI instanceof CombinedAPI) {
foreach ($this->CombinedAPI->instance_paths as $path) {
unset($keys[$path]);
}