MDL-13399, MDL-13614 fixed regression caused by last commit; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-02-23 19:29:25 +00:00
parent 6682b29c8d
commit c7e6b7e462

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);