fix order by not in select clause for >mysql-5.7

This commit is contained in:
Andrej Rode 2017-08-16 00:45:56 +02:00
parent dc6fb49f44
commit 5f305121a4
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ function load_days() {
$days = sql_select_single_col(" $days = sql_select_single_col("
SELECT DISTINCT DATE(FROM_UNIXTIME(`start`)) AS `id`, DATE(FROM_UNIXTIME(`start`)) AS `name` SELECT DISTINCT DATE(FROM_UNIXTIME(`start`)) AS `id`, DATE(FROM_UNIXTIME(`start`)) AS `name`
FROM `Shifts` FROM `Shifts`
ORDER BY `start`"); ORDER BY `id`, `name`");
if (count($days) == 0) { if (count($days) == 0) {
error(_("The administration has not configured any shifts yet.")); error(_("The administration has not configured any shifts yet."));
redirect('?'); redirect('?');