diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-12-07 02:31:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 02:31:40 +0300 |
commit | bfce7cd9bc5e9870bbe133a900b9923ffa858cc7 (patch) | |
tree | 3ed2991e31ef70bebc8472736a54196bcc24645d /core | |
parent | d6b7a1734bd9c9519310192cc682cde25bf80255 (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.php | 1 |
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) . ")"; |