]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBA.php
Merge pull request #10809 from annando/small-as
[friendica.git] / src / Database / DBA.php
index e44260914eeb20c11c959fa0b000d71277180066..784815f181e774fa07534bef5af3a53f7af56d27 100644 (file)
@@ -733,7 +733,7 @@ class DBA
                $order_string = '';
                if (isset($params['order'])) {
                        $order_string = " ORDER BY ";
-                       foreach ($params['order'] AS $fields => $order) {
+                       foreach ($params['order'] as $fields => $order) {
                                if ($order === 'RAND()') {
                                        $order_string .= "RAND(), ";
                                } elseif (!is_int($fields)) {