Release 1.2.0-RC3

This commit is contained in:
Abel Hoogeveen 2019-03-05 11:12:27 +01:00
parent 6f1b1b814d
commit 67e79ceba3
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
2 changed files with 6 additions and 3 deletions

View File

@ -15,13 +15,13 @@
], ],
"require": { "require": {
"php": ">=7.1.0", "php": ">=7.1.0",
"fuzeworks/core": "1.2.0-RC2", "fuzeworks/core": "1.2.0-RC3",
"fuzeworks/mvcr": "1.2.0-RC2", "fuzeworks/mvcr": "1.2.0-RC3",
"ext-pdo": "*" "ext-pdo": "*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^7", "phpunit/phpunit": "^7",
"fuzeworks/tracycomponent": "1.2.0-RC2" "fuzeworks/tracycomponent": "1.2.0-RC3"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View File

@ -167,6 +167,9 @@ class PDOTableModel implements iDatabaseTableModel
// And return the result // And return the result
$fetchMode = (isset($options['fetchMode']) ? $options['fetchMode'] : PDO::FETCH_ASSOC); $fetchMode = (isset($options['fetchMode']) ? $options['fetchMode'] : PDO::FETCH_ASSOC);
if (is_array($fetchMode))
return $this->lastStatement->fetchAll(...$fetchMode);
return $this->lastStatement->fetchAll($fetchMode); return $this->lastStatement->fetchAll($fetchMode);
} }