Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-12-07 02:31:40 +0300
committerGitHub <noreply@github.com>2020-12-07 02:31:40 +0300
commitbfce7cd9bc5e9870bbe133a900b9923ffa858cc7 (patch)
tree3ed2991e31ef70bebc8472736a54196bcc24645d /core
parentd6b7a1734bd9c9519310192cc682cde25bf80255 (diff)
Fix ArgumentCountError: mysqli_stmt::bind_param() does not accept unknown named parameters (#16893)
fix https://github.com/matomo-org/matomo/issues/16885
Diffstat (limited to 'core')
-rw-r--r--core/Db/BatchInsert.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php
index 4223a042db..b980a818d2 100644
--- a/core/Db/BatchInsert.php
+++ b/core/Db/BatchInsert.php
@@ -35,6 +35,7 @@ class BatchInsert
$ignore = $ignoreWhenDuplicate ? 'IGNORE' : '';
foreach ($values as $row) {
+ $row = array_values($row);
$query = "INSERT $ignore INTO " . $tableName . "
$fieldList
VALUES (" . Common::getSqlStringFieldsArray($row) . ")";