[CACHE] Switch to 'empty' rather than 'is_null' is Cache::getHashMapKey, as it may return null or false

This commit is contained in:
Hugo Sales 2021-11-28 11:16:10 +00:00 committed by Diogo Peralta Cordeiro
parent f986f59424
commit 8f5b404941
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -341,7 +341,7 @@ abstract class Cache
} }
}; };
$res = $get(); $res = $get();
if (\is_null($res)) { if (empty($res)) {
self::setHashMap($map_key, $calculate_map(), $pool); self::setHashMap($map_key, $calculate_map(), $pool);
$res = $get(); $res = $get();
} }