diff --git a/inc/display.php b/inc/display.php index bd180f5a..d595e5d0 100644 --- a/inc/display.php +++ b/inc/display.php @@ -360,6 +360,7 @@ class Post { if (isset($this->files) && $this->files) { $this->files = is_string($this->files) ? json_decode($this->files) : $this->files; // Compatibility for posts before individual file hashing + if ($this->files) { foreach ($this->files as $i => &$file) { if (empty($file)) { unset($this->files[$i]); @@ -368,6 +369,7 @@ class Post { if (!isset($file->hash)) $file->hash = $this->filehash; } + } } $this->subject = utf8tohtml($this->subject);