[CACHE] Switch to 'empty' rather than 'is_null' is Cache::getHashMapKey, as it may return null or false
This commit is contained in:
parent
f986f59424
commit
8f5b404941
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user