fix a bug for some bad database state. thanks Seisatsu for testing

This commit is contained in:
czaks 2015-09-11 12:49:30 +02:00
parent 8678716297
commit 6d4e756240

View File

@ -354,7 +354,7 @@ class Post {
}
if (isset($this->files) && $this->files)
$this->files = json_decode($this->files);
$this->files = @json_decode($this->files);
$this->subject = utf8tohtml($this->subject);
$this->name = utf8tohtml($this->name);
@ -404,7 +404,7 @@ class Thread {
}
if (isset($this->files))
$this->files = json_decode($this->files);
$this->files = @json_decode($this->files);
$this->subject = utf8tohtml($this->subject);
$this->name = utf8tohtml($this->name);