From 702e29a5cbc6413208e6e83d96a4fb4a93ea926a Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 8 Jan 2018 11:47:02 +0100 Subject: [PATCH] * fixed PHP warning about country not existing on online and characteres pages --- system/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/functions.php b/system/functions.php index aa4a4f2b..5f6b8d7d 100644 --- a/system/functions.php +++ b/system/functions.php @@ -156,6 +156,10 @@ function getFlagImage($country) if(!isset($config['countries'])) require(SYSTEM . 'countries.conf.php'); + if(!isset($config['countries'][$country])) { + return ''; + } + return ''; }