diff --git a/calendar/inc/class.socal.inc.php b/calendar/inc/class.socal.inc.php index 9f50e1d1cf..9fed5a80de 100644 --- a/calendar/inc/class.socal.inc.php +++ b/calendar/inc/class.socal.inc.php @@ -328,7 +328,7 @@ class socal if (!preg_match('/^[a-z_ ,]+$/i',$order)) $order = 'cal_start'; // gard against SQL injunktion - if ($this->db->capabilities['distinct_on_text'] && $this->capabilities['union']) + if ($this->db->capabilities['distinct_on_text'] && $this->db->capabilities['union']) { // changed the original OR in the query into a union, to speed up the query execution under MySQL 5 $select = array(