diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index de48ca72de7..25c40e82623 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -971,7 +971,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print ''."\n";
print ''."\n";
// CKEditor
- if (!empty($conf->global->FCKEDITOR_EDITORNAME) && $conf->global->FCKEDITOR_EDITORNAME == 'ckeditor')
+ if (!empty($conf->fckeditor->enabled) && !empty($conf->global->FCKEDITOR_EDITORNAME) && $conf->global->FCKEDITOR_EDITORNAME == 'ckeditor')
{
print ''."\n";
print ''."\n";