From 639d9904314d32977914421b801a48a61c76e3d0 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 c1e9a143e3b..aade33b2093 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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;