Skip to content
Browse files

Merge branch 'mdl32379_22' of git://github.com/tlevi/moodle into MOOD…

…LE_22_STABLE
  • Loading branch information...
2 parents 8075bd8 + e71b08c commit 35f7fa3d36635d68898a7f0a2d3ccb431500f7dd @danpoltawski danpoltawski committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sessionlib.php
View
2 lib/sessionlib.php
@@ -1067,7 +1067,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
sesskey(); // init session key
}

0 comments on commit 35f7fa3

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