From c7e6b7e4626d211c88083dc370a47dd05c412a86 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 23 Feb 2008 19:29:25 +0000 Subject: [PATCH] MDL-13399, MDL-13614 fixed regression caused by last commit; merged from MOODLE_19_STABLE --- lib/datalib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datalib.php b/lib/datalib.php index 7303a36f5a9..15363503d0d 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);