Search.php - use FETCH_ASSOC to avoid issues when building Post objects
This commit is contained in:
parent
8839bd6e7a
commit
e9372e50ee
|
@ -142,7 +142,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp = '';
|
$temp = '';
|
||||||
while($post = $query->fetch()) {
|
while($post = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||||
if(!$post['thread']) {
|
if(!$post['thread']) {
|
||||||
$po = new Thread($post);
|
$po = new Thread($post);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue