mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-43211 course: do not return indent icon if not needed
This commit is contained in:
parent
f05e25d208
commit
639d990431
@ -1979,7 +1979,7 @@ function course_get_cm_edit_actions(cm_info $mod, $indent = -1, $sr = null) {
|
||||
}
|
||||
|
||||
// Indent.
|
||||
if ($hasmanageactivities) {
|
||||
if ($hasmanageactivities && $indent >= 0) {
|
||||
$indentlimits = new stdClass();
|
||||
$indentlimits->min = 0;
|
||||
$indentlimits->max = 16;
|
||||
|
Loading…
x
Reference in New Issue
Block a user