From f293e352ecd70b9745ec366d1ab49641503c40d8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 30 Aug 2019 07:59:18 +0200 Subject: [PATCH] Renamed function parameter --- src/Model/Contact.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5