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