PHP 4 assignment is by value so course_header (containing edited names)

wasn't being modified. MDL-8298

Merged from MOODLE_17_STABLE
This commit is contained in:
stronk7
2007-02-14 23:51:54 +00:00
parent d8f605d675
commit 4eec1cbcee
+3
View File
@@ -26,6 +26,9 @@
$restore->course_startdateoffset = $coursestartdatedateoffset; //change to restore
}
///Enforce SESSION->course_header rewrite (PHP 4.x needed because assigns are by value) MDL-8298
$SESSION->course_header = $course_header;
//If restore session info exists, but we are coming from the form
//it has prioriry
if (isset($restore) and !empty($fromform)) {