From 70aa351f8e00bc0b5908ffafe385bc974187a41f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 19 Mar 2011 00:40:08 +0000 Subject: [PATCH] Removed warning --- htdocs/main.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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";