mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-18927 fixed performance regression
This commit is contained in:
parent
842feb0612
commit
121d8006e4
2 changed files with 5 additions and 5 deletions
|
@ -832,14 +832,14 @@ class grade_category extends grade_object {
|
|||
|
||||
// Stop recursing upwards if this category aggregates subcats or has no parent
|
||||
if (!$first && !$this->aggregatesubcats) {
|
||||
if ($parent_category = $this->get_parent_category()) {
|
||||
if ($parent_category = $this->load_parent_category()) {
|
||||
return $parent_category->get_coefstring(false);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} elseif ($first) {
|
||||
if (!$this->aggregatesubcats) {
|
||||
if ($parent_category = $this->get_parent_category()) {
|
||||
if ($parent_category = $this->load_parent_category()) {
|
||||
$overriding_coefstring = $parent_category->get_coefstring(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue