diff --git a/model/Database.php b/model/Database.php index 9448de3d..a48b5560 100755 --- a/model/Database.php +++ b/model/Database.php @@ -1847,7 +1847,7 @@ protected function _buildInsertQuery($tableData) $dataColumns = array_keys($tableData); if ($isInsert) { if (isset ($dataColumns[0])) - $this->_query .= ' (`' . implode($dataColumns, '`, `') . '`) '; + $this->_query .= ' (`' . implode('`, `', $dataColumns) . '`) '; $this->_query .= ' VALUES ('; } else { $this->_query .= " SET "; @@ -2548,4 +2548,4 @@ public function dropTable($table) { /* customf functions end */ } -// END class \ No newline at end of file +// END class