fix SQL error caused by no space before order by

This commit is contained in:
Ralf Becker 2019-04-25 16:36:20 +02:00
parent 9bd4ccde4c
commit 387f00d1a7

View File

@ -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