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

Commit

Permalink
php 5.5.9 issue, count(false) returns true, making RolesList empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 25, 2016
1 parent a6cb184 commit 0a7e490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Services/RolesService.php
Expand Up @@ -245,7 +245,7 @@ public static function getRolesList($roleIds = array(), $excludeReserved = false
$searches = array_map(function($k){return "pydio:role:".$k;}, $roleIds);
$fetches = CacheService::fetchMultiple(AJXP_CACHE_SERVICE_NS_SHARED, $searches);
$missing = [];
if(count($fetches)){
if($fetches !== false && count($fetches)){
$found = [];
foreach($searches as $cacheKey){
$okKey = preg_replace('/^pydio:role:/', "", $cacheKey);
Expand Down

0 comments on commit 0a7e490

Please sign in to comment.