moodle/lib/grade
Eloy Lafuente (stronk7) df048de49d MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit
It has been detected that the flatten_dependencies_array() was fragile
and leading to wrong results when some incorrect data was passed to it.

This includes:

- Missing elements.
- Null dependencies.
- Non array dependencies.

While the existing behaviour (testing-wise) has been preserved, now the
situations above are better controlled and the function ignores all
those incorrect cases that shouldn't happen ever.

That implies that a good number of notices/warnings/errors aren't
happening anymore. That was impacting both results (when the problems
were  only notices and warnings) and execution (when the problems
were errors).

Covered with tests.
2022-06-10 18:18:00 +02:00
..
tests MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit 2022-06-10 18:18:00 +02:00
constants.php MDL-27520 core_grades: make constant names clearer 2018-10-17 15:57:27 +08:00
grade_category.php MDL-70433 grades: prevent double escaping in titles 2021-08-27 10:56:07 +02:00
grade_grade.php MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit 2022-06-10 18:18:00 +02:00
grade_item.php MDL-70433 grades: prevent double escaping in titles 2021-08-27 10:56:07 +02:00
grade_object.php MDL-63591 core_grades: delete files when grade object is deleted 2018-11-21 16:15:12 +08:00
grade_outcome.php MDL-36255 core_grade: fix to ensure correct context used for filters 2018-08-22 17:55:50 +08:00
grade_scale.php MDL-36255 core_grade: fix to ensure correct context used for filters 2018-08-22 17:55:50 +08:00