[fix] unknown flag
This commit is contained in:
parent
50ca517960
commit
772e83331d
|
@ -97,10 +97,10 @@ function getDayWithBan($db) {
|
|||
function printFlag($countryCode) {
|
||||
if (empty($countryCode)) {
|
||||
return '';
|
||||
} elseif (file_exists('img/flag/16/'.strtolower($countryCode)).'.png') {
|
||||
} elseif (file_exists('img/flag/16/'.strtolower($countryCode).'.png')) {
|
||||
return '<img src="img/flag/16/'.strtolower($countryCode).'.png" alt="'.$countryCode.' flag" title="'.$countryCode.'"/>';
|
||||
} else {
|
||||
return '<img src="img/flag/16/unknow.png" alt="'.$countryCode.'" title="img/flag/16/'.strtolower($countryCode).'.png"/>';
|
||||
return 'Unknown <img src="img/flag/16/unknow.png" alt="'.$countryCode.'" title="img/flag/16/'.strtolower($countryCode).'.png"/>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue