This commit is contained in:
Daniil Gentili 2017-05-18 11:49:14 +01:00
parent 59c9bc0572
commit 0484d8f52b
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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');