Index: moodle.module
===================================================================
--- moodle.module	(revision 416)
+++ moodle.module	(working copy)
@@ -152,7 +152,7 @@
  * @return - themed output as string
  */
 function _moodle_theme_course_obj_array($courselist, $title = NULL, $link = TRUE) {
-  if (!is_array($courselist)) {
+  if (!$courselist) {
     $content = t("No courses found.");
   }
   else {
