diff --git a/bot_log/bot_log.module b/bot_log/bot_log.module
index c572234..f9ab5eb 100644
--- a/bot_log/bot_log.module
+++ b/bot_log/bot_log.module
@@ -238,11 +238,20 @@ function bot_log_date($channel = NULL, $date = NULL) {
       } // you'll be popular, but just not quite as popular asSSs MmE.eEEe.
     }
 
-    $build['bot_log_channels'] = array(
-      '#prefix' => '<p>' . t('Choose the IRC channel whose logs you want to view:') . '</p><ul>',
-      '#markup' => implode("\n", $logged_channels), // should probably be slightly more renderable.
-      '#suffix' => '</ul>', // instead of just raw HTML for people to futz with and QQ over.
-    );
+    if (isset($logged_channels) && !empty($logged_channels)) {
+      $build['bot_log_channels'] = array(
+        '#prefix' => '<p>' . t('Choose the IRC channel whose logs you want to view:') . '</p><ul>',
+        '#markup' => implode("\n", $logged_channels), // should probably be slightly more renderable.
+        '#suffix' => '</ul>', // instead of just raw HTML for people to futz with and QQ over.
+      );
+    }
+    else {
+      // Let users know that logging needs to be configured.
+      drupal_set_message(t('No logs available.'), 'warning');
+      $build['bot_log_channels'] = array(
+        '#markup' => '<p>' . l(t('Configure logging'), "admin/config/bot/log") . '</p>'
+      );
+    }
   }
 
   // there is a channel! and the user can view it! holy crap!
