Don't show alarms of past events
This commit is contained in:
parent
46b68799ca
commit
1883f8edbd
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue