This commit is contained in:
nilsding 2014-08-18 16:46:14 +02:00
parent 06f84a881b
commit 95c4db1703

View File

@ -77,7 +77,7 @@ if (!isset($notemplate)) {
$recent_public = $res['value'] === "true" ? true : false;
$recent_count = 0;
if ($recent_public) {
$res = $sql->query("SELECT `value` FROM `config` WHERE `key` = \"recent_public\";")->fetch_assoc();
$res = $sql->query("SELECT `value` FROM `config` WHERE `key` = \"recent_count\";")->fetch_assoc();
$recent_count = (int) $res['value'];
}