From 7e835c4eda000bcf4d105fc3d0e9e3ec612ee885 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Oct 2020 18:45:12 +0100 Subject: [PATCH] Set country to unkown in ping if not defined --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 83157cc8c9d..d580029a5cc 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -2871,7 +2871,7 @@ if (!function_exists("llxFooter")) version: '', entity: 'entity; ?>', dbtype: 'type); ?>', - country_code: 'country_code); ?>', + country_code: 'country_code ? dol_escape_js($mysoc->country_code) : 'unknown'; ?>', php_version: '', os_version: '', distrib: ''