Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 0a7e490

Browse files
committed
php 5.5.9 issue, count(false) returns true, making RolesList empty.
1 parent a6cb184 commit 0a7e490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/core/src/pydio/Core/Services/RolesService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static function getRolesList($roleIds = array(), $excludeReserved = false
245245
$searches = array_map(function($k){return "pydio:role:".$k;}, $roleIds);
246246
$fetches = CacheService::fetchMultiple(AJXP_CACHE_SERVICE_NS_SHARED, $searches);
247247
$missing = [];
248-
if(count($fetches)){
248+
if($fetches !== false && count($fetches)){
249249
$found = [];
250250
foreach($searches as $cacheKey){
251251
$okKey = preg_replace('/^pydio:role:/', "", $cacheKey);

0 commit comments

Comments
 (0)