diff --git a/api/src/Contacts.php b/api/src/Contacts.php index fc5d4b0ec5..e066ac8ebf 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -1725,7 +1725,7 @@ class Contacts extends Contacts\Storage { $sql .= " AND egw_cal_user.cal_status != 'R'"; } - $sql .= 'order by cal_recur_date ASC, cal_start ASC Limit 1 + $sql .= ' order by cal_recur_date ASC, cal_start ASC Limit 1 ) as next_event FROM egw_addressbook