Index: lib/statslib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/statslib.php,v
retrieving revision 1.54.6.14
diff -u -r1.54.6.14 statslib.php
--- lib/statslib.php	29 Nov 2008 14:30:57 -0000	1.54.6.14
+++ lib/statslib.php	12 Nov 2009 03:32:38 -0000
@@ -1270,7 +1270,10 @@
         require_once($file);
         $function = $mod->name.'_get_'.$str.'_actions';
         if (function_exists($function)) {
-            $actions = array_merge($actions,$function());
+            $mod_actions = $function();
+            if (is_array($mod_actions)) {
+                $actions = array_merge($actions, $mod_actions);
+            }
         }
     }
 

