-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.10, 4.4.6, 4.5.2
The function check_hint_file_access in questionbase.php fetches the applicable hint from the behaviour and compares its ID to the one supplied by the caller. However, get_applicable_hint may return null, so accessing the ID will lead to a warning.
I suggest checking that $hint is not null, before trying to access the ID.