Fix failing tests.

This commit is contained in:
mark_story 2018-06-06 22:29:49 -04:00
parent cc9d2fcaa3
commit 99d63752d0

View file

@ -3043,8 +3043,11 @@ class DboSource extends DataSource {
* @return string ORDER BY clause
*/
public function order($keys, $direction = 'ASC', Model $Model = null) {
$keys = array_filter((array)$keys);
if (!is_array($keys)) {
$keys = array($keys);
}
$keys = array_filter($keys);
$result = array();
while (!empty($keys)) {
$key = key($keys);