pull/136/head
Marien Fressinaud 12 years ago
parent 044908439b
commit 30890b3d15
  1. 2
      app/models/Entry.php

@ -329,7 +329,7 @@ class EntryDAO extends Model_pdo {
public function cleanOldEntries ($nb_month) { public function cleanOldEntries ($nb_month) {
$date = 60 * 60 * 24 * 30 * $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); $stm = $this->bd->prepare ($sql);
$values = array ( $values = array (

Loading…
Cancel
Save