From 65104cbb400e18324ce2cae41b5346b0911d0fd4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Feb 2012 13:23:13 +0100 Subject: [PATCH] Try a fix to edit log level --- htdocs/admin/syslog.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/htdocs/admin/syslog.php b/htdocs/admin/syslog.php index e8436730ebe..13705e82e9f 100644 --- a/htdocs/admin/syslog.php +++ b/htdocs/admin/syslog.php @@ -193,17 +193,20 @@ print ''; try { set_include_path('/usr/share/php/'); - @require_once('FirePHPCore/FirePHP.class.php'); + $res=@include_once('FirePHPCore/FirePHP.class.php'); restore_include_path(); - $var=!$var; - print ' '.$langs->trans("FirePHP").''; - print ''; - print ''; - print "".$form->textwithpicto('','FirePHP must be installed onto PHP and FirePHP plugin for Firefox must also be installed'); - print ''; + if ($res) + { + $var=!$var; + print ' '.$langs->trans("FirePHP").''; + print ''; + print ''; + print "".$form->textwithpicto('','FirePHP must be installed onto PHP and FirePHP plugin for Firefox must also be installed'); + print ''; + } } catch(Exception $e) { @@ -246,7 +249,8 @@ print "\n"; dol_htmloutput_mesg($mesg); -$db->close(); llxFooter(); + +$db->close(); ?>