Index: htmlarea.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/htmlarea/htmlarea.module,v
retrieving revision 1.104
diff -u -p -r1.104 htmlarea.module
--- htmlarea.module	5 Jun 2007 01:27:51 -0000	1.104
+++ htmlarea.module	6 Nov 2007 00:00:17 -0000
@@ -735,9 +735,10 @@ function _htmlarea_load_editor() {
     }
     
     if ($plugins = variable_get('htmlarea_plugins', NULL)) {
+	  $plugins_new = Array();
       foreach ($plugins as $d => $a) {
         if ($a['enable']) {
-          $plugins[] = $a['name'];
+          $plugins_new[] = $a['name'];
           $plugin = strtolower(preg_replace_callback('/([a-z])([A-Z])([a-z])/', '_htmlarea_plugin_preg', $a['name']));
           $filename = $d .'/' .$plugin .".js";
           if (file_exists($filename)) {
@@ -756,8 +757,8 @@ function _htmlarea_load_editor() {
         }
       }
     }
-    if (isset($plugins)) {
-      $settings['htmlarea']['plugins'] = $plugins;
+    if (!empty($plugins_new)) {
+      $settings['htmlarea']['plugins'] = $plugins_new;
     } 
     drupal_add_js($settings, 'setting');
     $loaded = TRUE;
