Fix Undefined array key in Search/Indexer.php
This commit is contained in:
parent
5fb6eef7d2
commit
7c3926398e
|
@ -1186,8 +1186,10 @@ class Indexer {
|
|||
if ($tuple === '') continue;
|
||||
list($key, $cnt) = explode('*', $tuple);
|
||||
if (!$cnt) continue;
|
||||
$key = $keys[$key];
|
||||
if ($key === false || is_null($key)) continue;
|
||||
if (isset($keys[$key])) {
|
||||
$key = $keys[$key];
|
||||
if ($key === false || is_null($key)) continue;
|
||||
}
|
||||
$result[$key] = $cnt;
|
||||
}
|
||||
return $result;
|
||||
|
|
Loading…
Reference in New Issue