diff --git a/inc/display.php b/inc/display.php index 0d4ad445..00b58f89 100644 --- a/inc/display.php +++ b/inc/display.php @@ -313,8 +313,9 @@ class Post { $this->{$key} = $value; } - if (isset($this->files) && $this->files) + if (isset($this->files) && $this->files && !is_array($this->files)) { $this->files = json_decode($this->files); + } $this->subject = utf8tohtml($this->subject); $this->name = utf8tohtml($this->name);