diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 9fc4602b7e6..4b2123b8f70 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -845,7 +845,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
// Displays title
$appli='Dolibarr';
- if (! empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;
+ if (!empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;
if ($title) print '
'.$appli.' - '.$title.'';
else print "".$appli."";
@@ -859,7 +859,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print ''."\n";
print ''."\n";
// jQuery jnotify
- if ($conf->global->MAIN_USE_JQUERY_JNOTIFY) print ''."\n";
+ if (!empty($conf->global->MAIN_USE_JQUERY_JNOTIFY)) print ''."\n";
}
print ''."\n";
@@ -902,14 +902,14 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print ''."\n";
print ''."\n";
// jQuery Layout
- if ($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT || defined('REQUIRE_JQUERY_LAYOUT'))
+ if (!empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) || defined('REQUIRE_JQUERY_LAYOUT'))
{
print ''."\n";
}
// jQuery jnotify
- if ($conf->global->MAIN_USE_JQUERY_JNOTIFY) print ''."\n";
+ if (!empty($conf->global->MAIN_USE_JQUERY_JNOTIFY)) print ''."\n";
// CKEditor
- if (! empty($conf->global->FCKEDITOR_EDITORNAME) && $conf->global->FCKEDITOR_EDITORNAME == 'ckeditor')
+ if (!empty($conf->global->FCKEDITOR_EDITORNAME) && $conf->global->FCKEDITOR_EDITORNAME == 'ckeditor')
{
print ''."\n";
print ''."\n";