fix a bug for some bad database state. thanks Seisatsu for testing
This commit is contained in:
parent
8678716297
commit
6d4e756240
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user