From 1b29eb5291ef90080c7e594e0154206e207a266b Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Wed, 11 Mar 2015 18:01:42 +0800 Subject: [PATCH] Fix an install bug in index.php --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 5031df82..12fec902 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,11 @@ fetchAll(PDO::FETCH_ASSOC); +if ($query) { + $newsplus = $query->fetchAll(PDO::FETCH_ASSOC); +} else { + $newsplus = false; +} $index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus)); file_write('index.html', $index);