]> git.mjollnir.org Git - moodle.git/commitdiff
No need to always show the resort button
authormoodler <moodler>
Mon, 25 Aug 2003 01:04:11 +0000 (01:04 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 01:04:11 +0000 (01:04 +0000)
course/category.php

index c15781886b9d9a1f88cd1954e1fa1408f98b9409..01ad41106b352f48a909c843280c44e844d0d04c 100644 (file)
 
 
     echo "<center>";
-    if (isadmin()) {           /// Print button to re-sort courses by name
+    if (isadmin() and $numcourses > 1) {           /// Print button to re-sort courses by name
         unset($options);
         $options["id"] = $category->id;
         $options["resort"] = "name";