diff options
| author | 2013-04-10 20:21:10 +0200 | |
|---|---|---|
| committer | 2013-04-10 20:21:10 +0200 | |
| commit | 30890b3d15566dd087b8e6837b75d47b17ed93ed (patch) | |
| tree | 8224289ee27bfe74f64e84a3ef94f7cc2f7bb8a6 /app/models/Entry.php | |
| parent | 044908439bdd7280f7539e12441d7dfa6c4d4c63 (diff) | |
Fix bug #50
Diffstat (limited to 'app/models/Entry.php')
| -rwxr-xr-x | app/models/Entry.php | 2 |
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 ( |
