1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 02:27:24 +01:00

Fix an install bug in index.php

This commit is contained in:
Fredrick Brennan 2015-03-11 18:01:42 +08:00
parent 440b0d5f82
commit 1b29eb5291

View File

@ -1,7 +1,11 @@
<?php
include 'inc/functions.php';
$query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_news+` p ON np.thread=p.id WHERE np.dead IS FALSE ORDER BY p.bump DESC');
$newsplus = $query->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);