diff --git a/Model/Message/Dom.php b/Model/Message/Dom.php index be1f5a321..f91039b77 100644 --- a/Model/Message/Dom.php +++ b/Model/Message/Dom.php @@ -153,7 +153,7 @@ class Dom implements \Serializable, ArrayableInterface $this->delay = $unserialized['time'] ?? 0; $this->selector = $unserialized['selector'] ?? ''; $this->action = $unserialized['action'] ?? ''; - $this->content = $unserialized['content'] ?? ''; + $this->content = $unserialized['content'] ?? DomAction::MODIFY; } /** diff --git a/Model/Message/Notify.php b/Model/Message/Notify.php index 523b19d5b..f36f7f034 100644 --- a/Model/Message/Notify.php +++ b/Model/Message/Notify.php @@ -194,7 +194,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable $unserialized = \json_decode($raw, true); $this->delay = $unserialized['time'] ?? 0; - $this->stay = $unserialized['stay'] ?? ''; + $this->stay = $unserialized['stay'] ?? 0; $this->message = $unserialized['msg'] ?? ''; $this->title = $unserialized['title'] ?? ''; $this->level = $unserialized['level'] ?? 0; diff --git a/Model/Message/Redirect.php b/Model/Message/Redirect.php index 4b9e0c7b6..5f70e6acc 100644 --- a/Model/Message/Redirect.php +++ b/Model/Message/Redirect.php @@ -137,7 +137,7 @@ class Redirect implements \Serializable, ArrayableInterface, \JsonSerializable $this->delay = $unserialized['time'] ?? 0; $this->uri = $unserialized['uri'] ?? ''; - $this->new = $unserialized['new'] ?? ''; + $this->new = $unserialized['new'] ?? false; } /**