Skip to content

Commit

Permalink
MDL-79642 qbank_tagquestion: Fix Return type err
Browse files Browse the repository at this point in the history
Previously if $CFG->usetags was not enabled the course question bank
page would show:

  Exception - qbank_tagquestion\plugin_feature::get_question_filters():
  Return value must be of type array, none returned

This is now fixed.
  • Loading branch information
leonstr committed Oct 10, 2023
1 parent fe7aff8 commit 7cba440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions question/bank/tagquestion/classes/plugin_feature.php
Expand Up @@ -41,5 +41,7 @@ public function get_question_filters(view $qbank = null): array {
new tag_condition($qbank),
];
}

return [];
}
}

0 comments on commit 7cba440

Please sign in to comment.