MDL-43211 course: do not return indent icon if not needed
This commit is contained in:
+1
-1
@@ -1982,7 +1982,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;
|
||||
|
||||
Reference in New Issue
Block a user