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

wasn't being modified. MDL-8298
This commit is contained in:
stronk7
2007-02-14 23:50:04 +00:00
parent 9e8bc0e590
commit cf507be4c0
+3
View File
@@ -27,6 +27,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)) {