mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-16335 remove unnecessary clone
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
This commit is contained in:
parent
454a6e7c4d
commit
210d7a46cd
@ -1136,7 +1136,7 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
|
||||
$uc = ini_get('session.use_cookies');
|
||||
ini_set('session.use_cookies', false);
|
||||
$sesscache = clone($_SESSION);
|
||||
$sesscache = $_SESSION;
|
||||
$sessidcache = session_id();
|
||||
session_write_close();
|
||||
unset($_SESSION);
|
||||
@ -1155,7 +1155,7 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
session_name('MoodleSession'.$CFG->sessioncookie);
|
||||
session_id($sessidcache);
|
||||
session_start();
|
||||
$_SESSION = clone($sesscache);
|
||||
$_SESSION = $sesscache;
|
||||
session_write_close();
|
||||
|
||||
$end = ob_end_clean();
|
||||
|
Loading…
x
Reference in New Issue
Block a user