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:
parent
440b0d5f82
commit
1b29eb5291
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user