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(); ?>