Index: bueditor.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bueditor/bueditor.module,v
retrieving revision 1.12
diff -u -r1.12 bueditor.module
--- bueditor.module	25 Apr 2007 22:10:45 -0000	1.12
+++ bueditor.module	17 Dec 2007 04:12:48 -0000
@@ -385,15 +385,12 @@
  * All buttons of an editor.
  */
 function bueditor_buttons($eid) {
-  static $buttons;
-  if ($eid && !isset($buttons[$eid])) {
-    $buttons[$eid] = array();
-    $result = db_query("SELECT * FROM {bueditor_buttons} WHERE eid = %d ORDER BY weight, title", $eid);
-    while ($button=db_fetch_object($result)) {
-      $buttons[$eid][$button->bid] = $button;
-    }
+  $buttons = array();
+  $result = db_query("SELECT * FROM {bueditor_buttons} WHERE eid = %d ORDER BY weight, title", $eid);
+  while ($button=db_fetch_object($result)) {
+    $buttons[$button->bid] = $button;
   }
-  return $eid ? $buttons[$eid] : array();
+  return $buttons;
 }
 
 /**
