From a083dd048d988aae46b905ad0ea0ab2fa84bfbd5 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 03c2d513..7dc4d9e7 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 ''; }