From 3c8be982d8ed820510d945ebaac016e3fccb582b Mon Sep 17 00:00:00 2001 From: "Emanuele \"ToX\" Toscano" Date: Tue, 30 Aug 2022 10:53:18 +0200 Subject: [PATCH] Bugfix: unable to upload a new video Fix: while uploading a new video there is an error in model/Database.php: `Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given`. --- model/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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