Search.php - use FETCH_ASSOC to avoid issues when building Post objects

This commit is contained in:
towards-a-new-leftypol 2023-12-13 02:23:31 +00:00
parent 8839bd6e7a
commit e9372e50ee
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@
}
$temp = '';
while($post = $query->fetch()) {
while($post = $query->fetch(PDO::FETCH_ASSOC)) {
if(!$post['thread']) {
$po = new Thread($post);
} else {