summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-12-18 15:24:11 +0100
committerGitHub <noreply@github.com>2017-12-18 15:24:11 +0100
commit913cb2b9c6a37364ccc6000ed0e23d73ac592872 (patch)
tree986ae4ca19a2ab8b692e9d758182d6ae06654bdb /lib
parentbdf411101351033596d391341c2cca28dcecfecf (diff)
parentd19dcfd0eb31913a4475ba613394f604dd0ad229 (diff)
downloadnextcloud-server-913cb2b9c6a37364ccc6000ed0e23d73ac592872.tar.gz
nextcloud-server-913cb2b9c6a37364ccc6000ed0e23d73ac592872.zip
Merge pull request #7554 from nextcloud/fix-7546
Fix default parameter of OC_DB::executeAudited()
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/db.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/db.php b/lib/private/legacy/db.php
index da21729f123..6e487e25ad5 100644
--- a/lib/private/legacy/db.php
+++ b/lib/private/legacy/db.php
@@ -105,11 +105,11 @@ class OC_DB {
* @param mixed $stmt OC_DB_StatementWrapper,
* an array with 'sql' and optionally 'limit' and 'offset' keys
* .. or a simple sql query string
- * @param array|null $parameters
+ * @param array $parameters
* @return OC_DB_StatementWrapper
* @throws \OC\DatabaseException
*/
- static public function executeAudited( $stmt, array $parameters = null) {
+ static public function executeAudited( $stmt, array $parameters = []) {
if (is_string($stmt)) {
// convert to an array with 'sql'
if (stripos($stmt, 'LIMIT') !== false) { //OFFSET requires LIMIT, so we only need to check for LIMIT