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