aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/feedController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/feedController.php')
-rwxr-xr-xapp/controllers/feedController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php
index 73d13063d..9ce38a03f 100755
--- a/app/controllers/feedController.php
+++ b/app/controllers/feedController.php
@@ -159,9 +159,9 @@ class feedController extends ActionController {
$nb_month_old = $this->view->conf->oldEntries ();
$date_min = time () - (60 * 60 * 24 * 30 * $nb_month_old);
if (rand(0, 30) === 1) {
- $nb= $entryDAO->cleanOldEntries ($date_min);
+ $nb = $entryDAO->cleanOldEntries ($date_min);
Minz_Log::record ($nb . ' old entries cleaned.', Minz_Log::DEBUG);
- if ($nbOld > 0) {
+ if ($nb > 0) {
$nb = $feedDAO->updateCachedValues ();
Minz_Log::record ($nb . ' cached values updated.', Minz_Log::DEBUG);
}