fix empty default parameter argument error

This commit is contained in:
Daniel Seifert 2022-09-05 09:05:54 +02:00
parent 6327bfb06d
commit c37768f2fa
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class OxidSQLLogger implements SQLLogger
$this->stopQuery();
}
$this->getPreparedStatementQuery($sql, $params);
$this->getPreparedStatementQuery($sql, $params ?? []);
$this->SQLQuery = (new SQLQuery()) ->setSql($sql)
->setParams($params)