--- course/report/participation/index.php 01:10:00.000000000 -0500
+++ course/report/participation/index.php 15:36:37.000000000 -0600
@@ -42,8 +42,9 @@
 
     $actionoptions = array('' => $strallactions,
                            'view' => $strview,
-                           'post' => $strpost,);
-    if (!in_array($action, $actionoptions)) {
+                           'post' => $strpost);
+
+    if (!array_key_exists($action, $actionoptions)) {
         $action = '';
     }
 

