Don't show alarms of past events

This commit is contained in:
Thomas Bruederli 2011-05-30 23:04:21 +02:00
parent 46b68799ca
commit 1883f8edbd

View file

@ -522,8 +522,9 @@ class database_driver extends calendar_driver
$result = $this->rc->db->query(sprintf(
"SELECT * FROM " . $this->db_events . "
WHERE calendar_id IN (%s)
AND notifyat <= %s",
AND notifyat <= %s AND end <= %s",
join(',', $calendar_ids),
$this->rc->db->fromunixtime($time),
$this->rc->db->fromunixtime($time)
));