Marien Fressinaud 13 years ago
parent
commit
30890b3d15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/Entry.php

+ 1 - 1
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 (