Merge branch 'mdl32379_21' of git://github.com/tlevi/moodle into MOODLE_21_STABLE
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user