]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/Database.php
Merge pull request #8804 from MrPetovan/bug/warnings
[friendica.git] / src / Database / Database.php
index 57c671895caa0397733c11a10251dc2d7ce2807a..897845ce0c8d6ba700c1a794d4149c99f0e1263c 100644 (file)
@@ -349,7 +349,7 @@ class Database
        }
 
        /**
-        * Removes every not whitelisted character from the identifier string
+        * Removes every not allowlisted character from the identifier string
         *
         * @param string $identifier
         *
@@ -979,7 +979,7 @@ class Database
         * @return boolean was the insert successful?
         * @throws \Exception
         */
-       public function insert($table, $param, $on_duplicate_update = false)
+       public function insert($table, array $param, bool $on_duplicate_update = false)
        {
                if (empty($table) || empty($param)) {
                        $this->logger->info('Table and fields have to be set');