bugfix
This commit is contained in:
parent
59c9bc0572
commit
0484d8f52b
@ -65,7 +65,7 @@ class API extends APIFactory
|
|||||||
return $this->{$name};
|
return $this->{$name};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function &__set($name, $value)
|
public function __set($name, $value)
|
||||||
{
|
{
|
||||||
if ($name === 'settings') {
|
if ($name === 'settings') {
|
||||||
return $this->API->__construct($value);
|
return $this->API->__construct($value);
|
||||||
|
@ -68,6 +68,8 @@ class Serialization
|
|||||||
$unserialized = \danog\Serialization::unserialize($unserialized);
|
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$unserialized = \danog\Serialization::unserialize($unserialized);
|
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||||
|
} catch (\Error $e) {
|
||||||
|
$unserialized = \danog\Serialization::unserialize($unserialized);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Exception('File does not exist');
|
throw new Exception('File does not exist');
|
||||||
|
Loading…
Reference in New Issue
Block a user