* [refac] filter empty value.
This commit is contained in:
@@ -565,7 +565,7 @@ class baseMao
|
||||
if(is_string($value)) $value = explode(',', str_replace(' ', '', $value));
|
||||
if(is_array($value))
|
||||
{
|
||||
$rawResult = $this->cache->fetchAll($this->table, $value);
|
||||
$rawResult = $this->cache->fetchAll($this->table, array_filter($value));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+5
-1
@@ -653,7 +653,11 @@ class cache
|
||||
if(empty($objectIdList)) $objectIdList = $allObjectIdList;
|
||||
|
||||
$keys = [];
|
||||
foreach($objectIdList as $objectID) $keys[$objectID] = $this->getRawCacheKey($code, $objectID);
|
||||
foreach($objectIdList as $objectID)
|
||||
{
|
||||
if(!$objectID) continue;
|
||||
$keys[$objectID] = $this->getRawCacheKey($code, $objectID);
|
||||
}
|
||||
|
||||
$objects = $this->cache->getMultiple(array_values($keys));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user