diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php index c1a73569e57..083d323520d 100755 --- a/htdocs/adherents/stats/geo.php +++ b/htdocs/adherents/stats/geo.php @@ -51,8 +51,9 @@ $langs->load("members"); * View */ - -llxHeader('','','','',0,0,array('http://www.google.com/jsapi')); +$arrayjs=array('http://www.google.com/jsapi'); +if (! empty($conf->dol_use_jmobile)) $arrayjs=array(); +llxHeader('','','','',0,0,$arrayjs); $title=$langs->trans("Statistics"); if ($mode == 'memberbycountry') $title=$langs->trans("MembersStatisticsByCountries"); @@ -196,7 +197,7 @@ else // Show graphics -if ($mode == 'memberbycountry') +if (count($arrayjs) && $mode == 'memberbycountry') { $color_file = DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/graph-color.php'; if (is_readable($color_file)) include_once $color_file;