Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 794fc9a9a306b3086bc1a8e3789db154c8a14554 1 parent 1bd430a
skodak authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/datalib.php
2  lib/datalib.php
@@ -836,7 +836,7 @@ function get_my_courses($userid, $sort='visible DESC,sortorder ASC', $fields=NUL
836 836 $sorts = array();
837 837 foreach ($rawsorts as $rawsort) {
838 838 $rawsort = trim($rawsort);
839   - if (strpos('c.', $rawsort)) {
  839 + if (strpos($rawsort, 'c.') === 0) {
840 840 $rawsort = substr($rawsort, 2);
841 841 }
842 842 $sorts[] = trim($rawsort);

0 comments on commit 794fc9a

Please sign in to comment.
Something went wrong with that request. Please try again.