Bug #5444 - Import PowerPoint - PHP5 clone bug

This commit is contained in:
skodak
2006-06-06 08:52:51 +00:00
parent 5218d67aca
commit 6aef11722c
+4 -4
View File
@@ -430,12 +430,12 @@ function lesson_create_objects($pageobjects, $lessonid) {
$answer->answer = "Next";
$answer->response = "";
$answers[] = $answer;
$answers[] = clone($answer);
$answer->jumpto = LESSON_PREVIOUSPAGE;
$answer->answer = "Previous";
$answers[] = $answer;
$answers[] = clone($answer);
$branchtable->answers = $answers;
@@ -445,8 +445,8 @@ function lesson_create_objects($pageobjects, $lessonid) {
$temp = prep_page($pageobject, $i); // makes our title and contents
$page->title = $temp->title;
$page->contents = $temp->contents;
$branchtable->page = $page; // add the page
$branchtables[] = $branchtable; // add it all to our array
$branchtable->page = clone($page); // add the page
$branchtables[] = clone($branchtable); // add it all to our array
$i++;
}