Archived
1
0

changing settings is now possible

This commit is contained in:
nilsding
2014-08-18 17:49:20 +02:00
parent 1efa145cf2
commit 4364ad8706
5 changed files with 56 additions and 18 deletions

View File

@@ -75,11 +75,8 @@ if (!isset($notemplate)) {
// show recent?
$res = $sql->query("SELECT `value` FROM `config` WHERE `key` = \"recent_public\";")->fetch_assoc();
$recent_public = $res['value'] === "true" ? true : false;
$recent_count = 0;
if ($recent_public) {
$res = $sql->query("SELECT `value` FROM `config` WHERE `key` = \"recent_count\";")->fetch_assoc();
$recent_count = (int) $res['value'];
}
$res = $sql->query("SELECT `value` FROM `config` WHERE `key` = \"recent_count\";")->fetch_assoc();
$recent_count = (int) $res['value'];
// the flash
$message = null;