mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue