fix api issue

This commit is contained in:
czaks 2013-08-05 06:09:15 -04:00
parent a84c4510fc
commit 0d8e2a65ab

View File

@ -1045,6 +1045,8 @@ function index($page, $mod=false) {
if ($query->rowCount() < 1 && $page > 1) if ($query->rowCount() < 1 && $page > 1)
return false; return false;
$threads = array();
while ($th = $query->fetch(PDO::FETCH_ASSOC)) { while ($th = $query->fetch(PDO::FETCH_ASSOC)) {
$thread = new Thread( $thread = new Thread(
$th['id'], $th['subject'], $th['email'], $th['name'], $th['trip'], $th['capcode'], $th['body'], $th['time'], $th['thumb'], $th['id'], $th['subject'], $th['email'], $th['name'], $th['trip'], $th['capcode'], $th['body'], $th['time'], $th['thumb'],