Permalink
Browse files

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

…LE_21_STABLE
  • Loading branch information...
2 parents 6791b08 + 3e86502 commit 787a484a60ccb051ecf5fc8a7d6952c5051ae38b @danpoltawski danpoltawski committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sessionlib.php
View
@@ -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

0 comments on commit 787a484

Please sign in to comment.