]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBA.php
Merge pull request #11267 from MrPetovan/task/11264-mastodon-api-version
[friendica.git] / src / Database / DBA.php
index e44260914eeb20c11c959fa0b000d71277180066..b72cc632a49285d6bc12d1760656d62c7e453584 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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)) {