diff --git a/index.php b/index.php index 42611a4..3d5c4e7 100644 --- a/index.php +++ b/index.php @@ -44,8 +44,8 @@ foreach($json as $source => $sourceData){ foreach($cog['tags'] as $index => $this_tag){$cog['tags'][$index] = strtolower($this_tag);} if($filter && !in_array(strtolower($filter), $cog['tags'])){ continue; } if($search && strpos(strtolower($cog['id']), strtolower($search)) === false){ - if(strpos(strtolower($cog['description'] ?: $cog['short']), strtolower($search)) === false){ - continue; + if(strpos(strtolower($cog['description'] ?: $cog['short']), strtolower($search)) === false && !in_array(strtolower($search), $cog['tags'])){ + continue; } } array_push($cogs, $cog);