mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-13399, MDL-13614 fixed regression caused by last commit; merged from MOODLE_19_STABLE
This commit is contained in:
parent
6682b29c8d
commit
c7e6b7e462
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user