]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBA.php
Merge pull request #10961 from annando/deprecated
[friendica.git] / src / Database / DBA.php
index 097f1b756a19367574c35352029e772d94e654ce..784815f181e774fa07534bef5af3a53f7af56d27 100644 (file)
@@ -421,7 +421,7 @@ class DBA
         * @param string|array  $table      Table name or array [schema => table]
         * @param array         $fields     contains the fields that are updated
         * @param array         $condition  condition array with the key values
-        * @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate)
+        * @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate, false = don't update identical fields)
         *
         * @return boolean was the update successfull?
         * @throws \Exception
@@ -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)) {