From: Michael Vogel Date: Fri, 30 Aug 2019 05:59:18 +0000 (+0200) Subject: Renamed function parameter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f293e352ecd70b9745ec366d1ab49641503c40d8;p=friendica.git Renamed function parameter --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index eb99a9fe0f..b18ebc22d6 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -140,15 +140,15 @@ class Contact extends BaseObject * Insert a row into the contact table * Important: You can't use DBA::lastInsertId() after this call since it will be set to 0. * - * @param array $param parameter array + * @param array $fields field array * @param bool $on_duplicate_update Do an update on a duplicate entry * * @return boolean was the insert successful? * @throws \Exception */ - public static function insert(array $param, bool $on_duplicate_update = false) + public static function insert(array $fields, bool $on_duplicate_update = false) { - $ret = DBA::insert('contact', $param, $on_duplicate_update); + $ret = DBA::insert('contact', $fields, $on_duplicate_update); $contact = DBA::selectFirst('contact', ['nurl', 'uid'], ['id' => DBA::lastInsertId()]); if (!DBA::isResult($contact)) { // Shouldn't happen