Update MysqliDb.php

fix deprecated implode()
This commit is contained in:
Giandonato Inverso
2022-09-05 20:40:26 +02:00
committed by GitHub
parent 25add5b7fd
commit 02754fba37
+1 -1
View File
@@ -1845,7 +1845,7 @@ class MysqliDb
$dataColumns = array_keys($tableData); $dataColumns = array_keys($tableData);
if ($isInsert) { if ($isInsert) {
if (isset ($dataColumns[0])) if (isset ($dataColumns[0]))
$this->_query .= ' (`' . implode($dataColumns, '`, `') . '`) '; $this->_query .= ' (`' . implode('`, `', $dataColumns) . '`) ';
$this->_query .= ' VALUES ('; $this->_query .= ' VALUES (';
} else { } else {
$this->_query .= " SET "; $this->_query .= " SET ";