-
Bug
-
Resolution: Fixed
-
Minor
-
3.1, 3.1.2
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
I get this error when I tried to get competency from plan (when competency is not existent)
PHP Fatal error: Class 'core_competency\coding_exception' not found in competency/classes/user_competency_plan.php on line 224
|
The problem is that coding_exception is used but not declared.
Two solutions are possible:
- Use the namespace:
use coding_exception;
- Use the backslash
new \coding_exception