diff --git apachesolr.module apachesolr.module
index 96ca05a..62bf7c9 100644
--- apachesolr.module
+++ apachesolr.module
@@ -2135,7 +2135,7 @@ function apachesolr_l($text, $path, $options = array()) {
 function apachesolr_js() {
   static $settings;
   // Only add the js stuff once.
-  if (empty($settings)) {
+  if (is_null($settings)) {
     $settings['apachesolr_facetstyle'] = variable_get('apachesolr_facetstyle', 'checkboxes');
     // This code looks for enabled facet blocks and injects the block #ids into
     // Drupal.settings as jQuery selectors to add the Show more links.
@@ -2146,6 +2146,7 @@ function apachesolr_js() {
         $facet_map[$facet_definition['facet_field']] = $facet;
       }
     }
+    $show_more_selector = array();
     foreach (apachesolr_get_enabled_facets() as $module => $blocks) {
       foreach ($blocks as $block) {
         $show_more_selector[] = "#block-{$module}-{$facet_map[$block]}:has(.apachesolr-hidden-facet)";
