From 0d8e2a65ab6ab719bc5dec5d7ddcab45342d882c Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 5 Aug 2013 06:09:15 -0400 Subject: [PATCH] fix api issue --- inc/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 2e487eed..7ed131d5 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1045,6 +1045,8 @@ function index($page, $mod=false) { if ($query->rowCount() < 1 && $page > 1) return false; + $threads = array(); + while ($th = $query->fetch(PDO::FETCH_ASSOC)) { $thread = new Thread( $th['id'], $th['subject'], $th['email'], $th['name'], $th['trip'], $th['capcode'], $th['body'], $th['time'], $th['thumb'],