-
Improvement
-
Resolution: Deferred
-
Minor
-
None
-
2.3, 3.4.3, 3.5
-
Any
-
MOODLE_23_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
When you call get_record with MUST_EXIST this currently throws a dml_exception. This should actually throw a different exception because it does not indicate a database error.
For example the exception could be a must_exist_exception and it could contain a default language string such as:
'Required information not found in database. This can occur if you follow an outdated or incorrect link.'
- has been marked as being related by
-
MDL-40200 PHP Notice when viewing the profile of a not existing user
- Closed