diff --git a/sites/all/modules/apachesolr b/sites/all/modules/apachesolr
index ca859fd..952db97 160000
--- a/sites/all/modules/apachesolr
+++ b/sites/all/modules/apachesolr
@@ -1 +1 @@
-Subproject commit ca859fd7979ab096a1ba7c2cd42404ffada0f8c7
+Subproject commit 952db979e0c6ab02432e5eb4e758737256319ab4
diff --git a/sites/all/modules/apachesolr_stats/apachesolr_stats.module b/sites/all/modules/apachesolr_stats/apachesolr_stats.module
index 1f87bef..37c2ab9 100644
--- a/sites/all/modules/apachesolr_stats/apachesolr_stats.module
+++ b/sites/all/modules/apachesolr_stats/apachesolr_stats.module
@@ -185,7 +185,7 @@ function apachesolr_stats_exit() {
 /**
  * Callback function that outputs an XML description for a Google Gadget
  * and terminates PHP execution.
- * 
+ *
  * @see apachesolr_stats_menu()
  */
 function apachesolr_stats_report_gadget() {
@@ -868,10 +868,13 @@ function apachesolr_stats_generate_report_elements($granularity) {
 
 /**
  * Recieves an array of keyword => count and reports the top-used terms.
- * @param $keywords  
+ * @param $keywords
  *   array of keyword => count pairs
  */
 function apachesolr_stats_report_frequent_keywords($keywords, $keywords_noresults, $class = "", $number = 25) {
+  if (empty($keywords)) {
+    return '';
+  }
   arsort($keywords);
   // Final elements are the most frequent, get $number elements off the array
   $slice = array_slice($keywords, 0, $number);
