[fix] unknown flag

This commit is contained in:
Knah Tsaeb 2015-07-21 15:49:41 +02:00
parent 50ca517960
commit 772e83331d
1 changed files with 2 additions and 2 deletions

View File

@ -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"/>';
} }
} }