summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php2
1 files changed, 2 insertions, 0 deletions
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'],