Skip to content

A free, self-hostable news aggregator…

Fix bug #50

Marien Fressinaud30890b3d1556
diff --git a/app/models/Entry.php b/app/models/Entry.php
index 3e90db289..ae207069c 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -329,7 +329,7 @@ class EntryDAO extends Model_pdo {
public function cleanOldEntries ($nb_month) {
$date = 60 * 60 * 24 * 30 * $nb_month;
- $sql = 'DELETE FROM entry WHERE date <= ? AND is_favorite = 0 AND notes != ""';
+ $sql = 'DELETE FROM entry WHERE date <= ? AND is_favorite = 0 AND annotation = ""';
$stm = $this->bd->prepare ($sql);
$values = array (