X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FDBA.php;h=784815f181e774fa07534bef5af3a53f7af56d27;hb=5350e0852d718494934252328d17a094fd1bc73e;hp=54c317ba3386dba99ba0f6e014cede9b280a32a0;hpb=99a145f7cff984f19e8adbc018a8b631aaa58e0f;p=friendica.git diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 54c317ba33..784815f181 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -1,6 +1,6 @@ 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)) {