From: nicolasconnault Date: Fri, 24 Apr 2009 08:13:56 +0000 (+0000) Subject: MDL-18950 Not printing "move selected to" element if no grade category exists. Merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=19d1a53b5ade66df37084264f1e4faf0f8fbeca3;p=moodle.git MDL-18950 Not printing "move selected to" element if no grade category exists. Merged from MOODLE_19_STABLE --- diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index 354969650e..c4dbd53f47 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -321,7 +321,8 @@ if (!$moving) { echo ''; } -if (!$moving) { +// We don't print a bulk move menu if there are no other categories than course category +if (!$moving && count($categories) > 1) { echo '

'; echo ''; echo get_string('moveselectedto', 'grades') . ' ';