mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-25 16:59:21 +02:00
* fixed PHP warning about country not existing on online and characteres pages
This commit is contained in:
parent
f09c30d370
commit
a083dd048d
@ -156,6 +156,10 @@ function getFlagImage($country)
|
||||
if(!isset($config['countries']))
|
||||
require(SYSTEM . 'countries.conf.php');
|
||||
|
||||
if(!isset($config['countries'][$country])) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return '<img src="images/flags/' . $country . '.gif" title="' . $config['countries'][$country]. '"/>';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user