8
0
Bifurcation 0

Comparer les révisions

...

2 Révisions
1.3.0 ... 1.3.1

2 fichiers modifiés avec 10 ajouts et 1 suppressions

Voir le fichier

@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.3.1] - 2021-04-29
### Fixed
- prevent the use of not countable parameters in prepared statemant rendering
---
## [1.3.0] - 2021-03-02 ## [1.3.0] - 2021-03-02
### Fixed ### Fixed

Voir le fichier

@ -70,10 +70,11 @@ class OxidSQLLogger implements SQLLogger
* @param array $params * @param array $params
* @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException * @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException
*/ */
public function getPreparedStatementQuery(&$sql, array $params = null) public function getPreparedStatementQuery(&$sql, $params = [])
{ {
if (class_exists(d3database::class) if (class_exists(d3database::class)
&& method_exists(d3database::class, 'getPreparedStatementQuery') && method_exists(d3database::class, 'getPreparedStatementQuery')
&& is_array($params)
&& count($params) && count($params)
&& ($query = d3database::getInstance()->getPreparedStatementQuery($sql, $params)) && ($query = d3database::getInstance()->getPreparedStatementQuery($sql, $params))
&& strlen(trim($query)) && strlen(trim($query))