Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 794fc9a9a306b3086bc1a8e3789db154c8a14554 1 parent 1bd430a
skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
View
2  lib/datalib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.