Fix bad side effect of debugbar with android

This commit is contained in:
Laurent Destailleur 2019-12-03 14:59:05 +01:00
parent cb62844472
commit 78acf07e4c

View File

@ -253,7 +253,7 @@ require_once 'master.inc.php';
register_shutdown_function('dol_shutdown'); register_shutdown_function('dol_shutdown');
// Load debugbar // Load debugbar
if (! empty($conf->debugbar->enabled)) if (!empty($conf->debugbar->enabled) && ! GETPOST('dol_use_jmobile') && empty($_SESSION['dol_use_jmobile']))
{ {
global $debugbar; global $debugbar;
include_once DOL_DOCUMENT_ROOT.'/debugbar/class/DebugBar.php'; include_once DOL_DOCUMENT_ROOT.'/debugbar/class/DebugBar.php';