Skip to content

Commit

Permalink
MDL-57791 analytics: fix for in_array
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Jul 26, 2017
1 parent afa752e commit 0eb5944
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected final function any_write_log($contextid, $user) {
*/
protected function any_feedback($action, \cm_info $cm, $contextid, $user) {

if (!in_array($action, 'submitted', 'replied', 'viewed')) {
if (!in_array($action, ['submitted', 'replied', 'viewed'])) {
throw new \coding_exception('Provided action "' . $action . '" is not valid.');
}

Expand Down

0 comments on commit 0eb5944

Please sign in to comment.