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

This commit is contained in:
Marina Glancy 2014-01-09 17:01:58 +08:00
parent f05e25d208
commit 639d990431

View File

@ -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;