Fix: Avoid pb with jmobile
This commit is contained in:
parent
9f1eb0676b
commit
4b0b6fdd55
@ -51,8 +51,9 @@ $langs->load("members");
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$arrayjs=array('http://www.google.com/jsapi');
|
||||||
llxHeader('','','','',0,0,array('http://www.google.com/jsapi'));
|
if (! empty($conf->dol_use_jmobile)) $arrayjs=array();
|
||||||
|
llxHeader('','','','',0,0,$arrayjs);
|
||||||
|
|
||||||
$title=$langs->trans("Statistics");
|
$title=$langs->trans("Statistics");
|
||||||
if ($mode == 'memberbycountry') $title=$langs->trans("MembersStatisticsByCountries");
|
if ($mode == 'memberbycountry') $title=$langs->trans("MembersStatisticsByCountries");
|
||||||
@ -196,7 +197,7 @@ else
|
|||||||
|
|
||||||
|
|
||||||
// Show graphics
|
// Show graphics
|
||||||
if ($mode == 'memberbycountry')
|
if (count($arrayjs) && $mode == 'memberbycountry')
|
||||||
{
|
{
|
||||||
$color_file = DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/graph-color.php';
|
$color_file = DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/graph-color.php';
|
||||||
if (is_readable($color_file)) include_once $color_file;
|
if (is_readable($color_file)) include_once $color_file;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user