From bc2e0a2a2808c1b83ae122250d62686d7562372b Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Tue, 16 Jul 2019 10:50:39 +0200 Subject: [PATCH] Fix lazy-programmed getList() The changes the signature of the method. The only usage is in the oauth-module which isn't affected by this change --- modules/core/lib/Storage/SQLPermanentStorage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/lib/Storage/SQLPermanentStorage.php b/modules/core/lib/Storage/SQLPermanentStorage.php index bfbb46437..ea201bbb4 100644 --- a/modules/core/lib/Storage/SQLPermanentStorage.php +++ b/modules/core/lib/Storage/SQLPermanentStorage.php @@ -197,7 +197,7 @@ class SQLPermanentStorage * @param string $type * @param mixed $key1 * @param mixed $key2 - * @return array|false|null + * @return array|false */ public function getList($type = null, $key1 = null, $key2 = null) { @@ -207,8 +207,8 @@ class SQLPermanentStorage $prepared->execute(); $results = $prepared->fetchAll(PDO::FETCH_ASSOC); - if (count($results) == 0) { - return null; + if ($results === false) { + return false; } foreach ($results as $key => $value) { -- GitLab