commit
aedffa5677
@ -44,8 +44,8 @@ foreach($json as $source => $sourceData){
|
|||||||
foreach($cog['tags'] as $index => $this_tag){$cog['tags'][$index] = strtolower($this_tag);}
|
foreach($cog['tags'] as $index => $this_tag){$cog['tags'][$index] = strtolower($this_tag);}
|
||||||
if($filter && !in_array(strtolower($filter), $cog['tags'])){ continue; }
|
if($filter && !in_array(strtolower($filter), $cog['tags'])){ continue; }
|
||||||
if($search && strpos(strtolower($cog['id']), strtolower($search)) === false){
|
if($search && strpos(strtolower($cog['id']), strtolower($search)) === false){
|
||||||
if(strpos(strtolower($cog['description'] ?: $cog['short']), strtolower($search)) === false){
|
if(strpos(strtolower($cog['description'] ?: $cog['short']), strtolower($search)) === false && !in_array(strtolower($search), $cog['tags'])){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
array_push($cogs, $cog);
|
array_push($cogs, $cog);
|
||||||
|
Loading…
Reference in New Issue
Block a user