mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix failing tests.
This commit is contained in:
parent
cc9d2fcaa3
commit
99d63752d0
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue