From 41391dfd9d5cf0bbdff7505c22e1e77a00abb489 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Thu, 9 Jan 2014 17:01:58 +0800 Subject: [PATCH] MDL-43211 course: do not return indent icon if not needed --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 2f3ef230a0d..2c5f7794700 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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;