From a6fdec5713e8f06f3b72dca0fe15e997eee4915b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 2 Aug 2019 20:11:55 +0200 Subject: [PATCH] Fix ping --- htdocs/main.inc.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 96ddd9696a7..ff599f7567f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -2320,15 +2320,15 @@ if (! function_exists("llxFooter")) print "\n\n"; print ''."\n"; - // Add code for the fist asynchronous anonymous ping + // Add code for the asynchronous anonymous first ping (for telemetry) if (($_SERVER["PHP_SELF"] == DOL_URL_ROOT.'/index.php') || GETPOST('forceping', 'alpha')) { if (empty($conf->global->MAIN_FIRST_PING_OK_DATE) - || (! empty($conf->file->instance_unique_id) && $conf->file->instance_unique_id != $conf->global->MAIN_FIRST_PING_OK_ID) + || (! empty($conf->file->instance_unique_id) && (md5($conf->file->instance_unique_id) != $conf->global->MAIN_FIRST_PING_OK_ID)) || GETPOST('forceping', 'alpha')) { - print "\n".''."\n"; - print "\n\n"; + print "\n".''."\n"; + print "\n\n"; ?>