Merge branch 'mdl32379_21' of git://github.com/tlevi/moodle into MOODLE_21_STABLE

This commit is contained in:
Dan Poltawski
2012-05-07 11:29:15 +08:00
+1 -1
View File
@@ -1033,7 +1033,7 @@ function get_moodle_cookie() {
* @return void
*/
function session_set_user($user) {
$_SESSION['USER'] = $user;
$_SESSION['USER'] = clone $user;
unset($_SESSION['USER']->description); // conserve memory
if (!isset($_SESSION['USER']->access)) {
// check enrolments and load caps only once