From: moodler Date: Mon, 22 Jan 2007 03:28:06 +0000 (+0000) Subject: Whoops, forgot to set the cache :-) MDL-8149 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1cbf4fccc4fb9e399c2d80a9b7c84536ab96468a;p=moodle.git Whoops, forgot to set the cache :-) MDL-8149 --- diff --git a/lib/datalib.php b/lib/datalib.php index 2c89ac1b8a..0f04b29ac6 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -775,6 +775,10 @@ ORDER BY $sort"); } } + if (!empty($USER->id) && ($USER->id == $userid)) { + $USER->mycourses = $mycourses; + } + return $mycourses; }