Skip to content
Snippets Groups Projects
Unverified Commit bc2e0a2a authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

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
parent 8f418b31
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment