Permalink
Browse files

MDL-34765 Course: Removed unknown constant when reordering

  • Loading branch information...
1 parent b95d2cc commit ab6c91d42a936304f28965cbde1a7fc3cb0dc8ce @FMCorz FMCorz committed with nebgor Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/category.php
View
@@ -77,7 +77,7 @@
if ($canmanage && $resort && $sesskeyprovided) {
// Resort the category if requested
if ($courses = get_courses($category->id, '', 'c.id,c.fullname,c.sortorder')) {
- collatorlib::asort_objects_by_property($courses, 'fullname', collatorlib::SORT_NATURAL);
+ collatorlib::asort_objects_by_property($courses, 'fullname');
$i = 1;
foreach ($courses as $course) {
$DB->set_field('course', 'sortorder', $category->sortorder+$i, array('id'=>$course->id));

0 comments on commit ab6c91d

Please sign in to comment.