Author: Damyon Wiese
MDL-63876 badges: Allow criteria to be optional
Competencies criteria type is only added if competencies are enabled.
http://git.moodle.org/gw?p=moodle.git;a=commit;h=43f1c8e23c239c307f568e4e3d5a5e789ded312e
http://github.com/moodle/moodle/commit/43f1c8e23c239c307f568e4e3d5a5e789ded312e
+ 3.7 en [requiredcompetency,core_badges]