X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FDBA.php;h=a0eb1c3eceec382ceab0ffeca03f2ff264dcb6d7;hb=e8fee5644b5e746f8c09e604caac3d678f376989;hp=b72cc632a49285d6bc12d1760656d62c7e453584;hpb=e56a53647bd5469551bf4f9ef2df50a5dd16b943;p=friendica.git diff --git a/src/Database/DBA.php b/src/Database/DBA.php index b72cc632a4..a0eb1c3ece 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -422,13 +422,14 @@ class DBA * @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, false = don't update identical fields) + * @param array $params Parameters: "ignore" If set to "true" then the update is done with the ignore parameter * * @return boolean was the update successfull? * @throws \Exception */ - public static function update($table, $fields, $condition, $old_fields = []) + public static function update($table, $fields, $condition, $old_fields = [], $params = []) { - return DI::dba()->update($table, $fields, $condition, $old_fields); + return DI::dba()->update($table, $fields, $condition, $old_fields, $params); } /**