[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
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 1 additions and 1 deletions

View File

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