From: skodak Date: Sat, 23 Feb 2008 19:29:25 +0000 (+0000) Subject: MDL-13399, MDL-13614 fixed regression caused by last commit; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c7e6b7e4626d211c88083dc370a47dd05c412a86;p=moodle.git MDL-13399, MDL-13614 fixed regression caused by last commit; merged from MOODLE_19_STABLE --- diff --git a/lib/datalib.php b/lib/datalib.php index 7303a36f5a..15363503d0 100644 --- a/lib/datalib.php +++ b/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);