MDL-57791 analytics: fix for in_array
This commit is contained in:
@@ -177,7 +177,7 @@ abstract class community_of_inquiry_activity extends linear {
|
||||
*/
|
||||
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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user