fix download matching for numeric-string download tags

This commit is contained in:
mappu 2017-08-13 13:50:46 +12:00
parent 5801030e31
commit 657d5ccd31

View File

@ -196,7 +196,7 @@ class CProject {
}
foreach($this->downloads as $idx => $filename) {
foreach(array_keys($known_tags) as $tagname) {
if (stripos($filename, $tagname) !== false) {
if (stripos($filename, (string)$tagname) !== false) {
$found_idx[$idx] = $tagname;
$render_per_tag[$tagname][$idx] = $filename;