Skip to content

Commit

Permalink
fix search.php for new new Post and new Thread syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
czaks committed Aug 16, 2013
1 parent b0312d4 commit e0b729f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ function search_filters($m) {
$temp = '';
while($post = $query->fetch()) {
if(!$post['thread']) {
$po = new Thread($post['id'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['capcode'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $post['sticky'], $post['locked'], $post['sage'], $post['embed']);
$po = new Thread($post);
} else {
$po = new Post($post['id'], $post['thread'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['capcode'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $post['embed']);
$po = new Post($post);
}
$temp .= $po->build(true) . '<hr/>';
}
Expand Down

0 comments on commit e0b729f

Please sign in to comment.