Permalink
Browse files

No need to sort the courses when counting the number of courses using…

… a scale
  • Loading branch information...
1 parent 9e90313 commit 7e8c56795a01c7e9708b6e8206088bfd32511eae mjollnir_ committed Nov 22, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -3076,7 +3076,7 @@ function site_scale_used($scaleid,&$courses) {
$return = 0;
if (!is_array($courses) || count($courses) == 0) {
- $courses = get_courses("all","c.sortorder ASC","c.id,c.shortname");
+ $courses = get_courses("all",false,"c.id,c.shortname");
}
if (!empty($scaleid)) {

0 comments on commit 7e8c567

Please sign in to comment.