forked from leftypol/leftypol
display.php: handle thread already having an array (PHP 8.0 fix)
This commit is contained in:
parent
27726d6c2b
commit
0c8ea349ca
1 changed files with 3 additions and 2 deletions
|
@ -364,8 +364,9 @@ class Thread {
|
|||
$this->{$key} = $value;
|
||||
}
|
||||
|
||||
if (isset($this->files))
|
||||
$this->files = @json_decode($this->files);
|
||||
if (isset($this->files) && !is_array($this->files)) {
|
||||
$this->files = json_decode($this->files);
|
||||
}
|
||||
|
||||
$this->subject = utf8tohtml($this->subject);
|
||||
$this->name = utf8tohtml($this->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue