Merge branch 'MDL-77936-402' of https://github.com/paulholden/moodle into MOODLE_402_STABLE

This commit is contained in:
Ilya Tregubov
2023-05-03 10:07:40 +08:00
+5
View File
@@ -2630,6 +2630,11 @@ class grade_structure {
$context->dataid = $element['userid'];
}
// Omit the second divider if there is nothing between it and the first divider.
if (!isset($context->ascendingfirstnameurl) && !isset($context->ascendingurl)) {
$context->divider2 = false;
}
if (!empty($USER->editing) || isset($context->gradeanalysisurl) || isset($context->gradesonlyurl)
|| isset($context->aggregatesonlyurl) || isset($context->fullmodeurl) || isset($context->reporturl0)
|| isset($context->ascendingfirstnameurl) || isset($context->ascendingurl)