diff --git a/course/report/participation/index.php b/course/report/participation/index.php index ae3e0629624..bde37aa05a8 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -43,7 +43,7 @@ $actionoptions = array('' => $strallactions, 'view' => $strview, 'post' => $strpost,); - if (!in_array($action, $actionoptions)) { + if (!array_key_exists($action, $actionoptions)) { $action = ''; }