$events = array();
}
else {
- $events = get_records_select('event', $whereclause);
+ $events = get_records_select('event', $whereclause, 'timestart');
}
// This is either a genius idea or an idiot idea: in order to not complicate things, we use this rule: if, after
if ($whereclause === false) {
$events = false;
} else {
- $whereclause .= ' ORDER BY timestart'; // We want them this way
- $events = get_records_select('event', $whereclause);
+ $events = get_records_select('event', $whereclause, 'timestart');
}
// This is either a genius idea or an idiot idea: in order to not complicate things, we use this rule: if, after
$events = array();
}
else {
- $events = get_records_select('event', $whereclause);
+ $events = get_records_select('event', $whereclause, 'timestart');
}
// Extract information: events vs. time