Skip to content

Commit

Permalink
Schedule : Fix potential SQL error with no filters at all.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMis committed Nov 6, 2023
1 parent 615fe2b commit 62e7418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Factory/ScheduleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ public function query($sortOrder = null, $filterBy = [])
ELSE 2 END,
eventId';
} else if (is_array($sortOrder) && !empty($sortOrder)) {
$order .= 'ORDER BY ' . implode(',', $sortOrder);
$order .= ' ORDER BY ' . implode(',', $sortOrder);
}

// Paging
Expand Down

0 comments on commit 62e7418

Please sign in to comment.