MDL-13399, MDL-13614 fixed regression caused by last commit

This commit is contained in:
skodak
2008-02-23 19:28:33 +00:00
parent 1bd430af60
commit 794fc9a9a3
+1 -1
View File
@@ -836,7 +836,7 @@ function get_my_courses($userid, $sort='visible DESC,sortorder ASC', $fields=NUL
$sorts = array();
foreach ($rawsorts as $rawsort) {
$rawsort = trim($rawsort);
if (strpos('c.', $rawsort)) {
if (strpos($rawsort, 'c.') === 0) {
$rawsort = substr($rawsort, 2);
}
$sorts[] = trim($rawsort);