summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapp/models/Entry.php2
1 files changed, 1 insertions, 1 deletions
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 (