-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.1
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
MDL-59539-master -
-
In the function guess_image() of the lib/classes/oauth2/api.php:350 there is a call to get the property 'discoveryurl' of an issuer. However, this property is never defined for an issuer and therefore throws the exception:
coding_exception: Coding error detected, it must be fixed by a programmer: Unexpected property 'discoveryurl' requested
This problem does not occur in core, since all predefined issuers have already a predefined image. So this code within
if (empty($issuer->get('image'))) { |
is never called.