Merge pull request #728 from vichan-devel/RealAngeleno-patch-5

bugfix for ban appeals page
This commit is contained in:
Lorenzo Yario 2024-04-19 12:04:09 -07:00 committed by GitHub
commit 7025035376
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -356,10 +356,17 @@ class Post {
unset($this->files[$i]);
continue;
}
if (!isset($file->hash))
if (is_array($file)) {
if (!isset($file['hash'])) {
$file['hash'] = $this->filehash;
}
} else if (is_object($file)) {
if (!isset($file->hash)) {
$file->hash = $this->filehash;
}
}
}
}
$this->subject = utf8tohtml($this->subject);
$this->name = utf8tohtml($this->name);