MDL-43211 course: do not return indent icon if not needed

This commit is contained in:
Marina Glancy
2014-01-09 17:29:25 +08:00
parent e71a5333a3
commit 41391dfd9d
+1 -1
View File
@@ -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;