Alexandre Alapetite 12 лет назад
Родитель
Сommit
51900de16c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/controllers/feedController.php

+ 2 - 2
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);
 			}