diff --git a/app/Models/Chapter.php b/app/Models/Chapter.php index 9e59f89e..c8a772b3 100644 --- a/app/Models/Chapter.php +++ b/app/Models/Chapter.php @@ -214,9 +214,10 @@ class Chapter extends Model $this->attrs = $this->_read_attrs; } } - if (is_array($this->attrs)) { - $this->attrs = kg_json_encode($this->attrs); - } + } + + if (is_array($this->attrs)) { + $this->attrs = kg_json_encode($this->attrs); } $this->create_time = time();