Index: modules/zadministration/civicspace.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/zadministration/civicspace.inc,v
retrieving revision 1.9
diff -u -r1.9 civicspace.inc
--- modules/zadministration/civicspace.inc	11 Apr 2006 20:37:51 -0000	1.9
+++ modules/zadministration/civicspace.inc	20 Apr 2006 20:24:44 -0000
@@ -365,28 +365,30 @@
     $item .= "</li>\n";
     $group[$class] .= $item;
   }
-  krsort($group);
-  foreach($group as $class => $text) {
-    // Show statistics panel under "Manage web site and users"
-    // This goes before the 'normal' panel due to the way the CSS
-    // is setup.
-    if ($path == 'sadmin/overview') {
-      $output .= theme('cs_administration_statistics');
+  if (is_array($group)) {
+    krsort($group);
+    foreach($group as $class => $text) {
+      // Show statistics panel under "Manage web site and users"
+      // This goes before the 'normal' panel due to the way the CSS
+      // is setup.
+      if ($path == 'sadmin/overview') {
+        $output .= theme('cs_administration_statistics');
+      }
+      if (!$class) $class = 'dashboard-admin';
+      $output   .= "          <!-- START box -->\n";
+      $output   .= "          <div class=\"$class\"><div class=\"$class-buffer\">\n";
+      $output   .= "            <div class=\"xsnazzy\">\n";
+      $output   .= "              <b class=\"xtop\"><b class=\"xb1\"></b><b class=\"xb2\"></b><b class=\"xb3\"></b><b class=\"xb4\"></b></b>\n";
+      $output   .= "                <div class=\"xboxcontent\">\n";
+      $output   .= "                  <ul>\n";
+      $output   .= $text;
+      $output   .= "                  </ul>\n";
+      $output   .= "                </div>\n";
+      $output   .= "              <b class=\"xbottom\"><b class=\"xb4\"></b><b class=\"xb3\"></b><b class=\"xb2\"></b><b class=\"xb1\"></b></b>\n";
+      $output   .= "            </div>\n";
+      $output   .= "          </div></div>\n";
+      $output   .= "          <!-- END box -->\n";
     }
-    if (!$class) $class = 'dashboard-admin';
-    $output   .= "          <!-- START box -->\n";
-    $output   .= "          <div class=\"$class\"><div class=\"$class-buffer\">\n";
-    $output   .= "            <div class=\"xsnazzy\">\n";
-    $output   .= "              <b class=\"xtop\"><b class=\"xb1\"></b><b class=\"xb2\"></b><b class=\"xb3\"></b><b class=\"xb4\"></b></b>\n";
-    $output   .= "                <div class=\"xboxcontent\">\n";
-    $output   .= "                  <ul>\n";
-    $output   .= $text;
-    $output   .= "                  </ul>\n";
-    $output   .= "                </div>\n";
-    $output   .= "              <b class=\"xbottom\"><b class=\"xb4\"></b><b class=\"xb3\"></b><b class=\"xb2\"></b><b class=\"xb1\"></b></b>\n";
-    $output   .= "            </div>\n";
-    $output   .= "          </div></div>\n";
-    $output   .= "          <!-- END box -->\n";
   }
   $output     .= "        </div>\n";
   $output     .= "        <!-- END dashboards-wrapper -->\n";
