fixed legacy comment upgrade code in assignment and journal

This commit is contained in:
skodak
2006-09-26 19:18:21 +00:00
parent ceac2552ef
commit fbc88f3886
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -149,7 +149,7 @@
$submission->data1 = backup_todb($sub_info['#']['DATA1']['0']['#']);
$submission->data2 = backup_todb($sub_info['#']['DATA2']['0']['#']);
$submission->grade = backup_todb($sub_info['#']['GRADE']['0']['#']);
if (isset(backup_todb($sub_info['#']['COMMENT']['0']['#']))) {
if (isset($sub_info['#']['COMMENT']['0']['#'])) {
$submission->submissioncomment = backup_todb($sub_info['#']['COMMENT']['0']['#']);
} else {
$submission->submissioncomment = backup_todb($sub_info['#']['SUBMISSIONCOMMENT']['0']['#']);
+1 -1
View File
@@ -132,7 +132,7 @@
$entry->text = backup_todb($entry_info['#']['TEXT']['0']['#']);
$entry->format = backup_todb($entry_info['#']['FORMAT']['0']['#']);
$entry->rating = backup_todb($entry_info['#']['RATING']['0']['#']);
if (isset(backup_todb($entry_info['#']['COMMENT']['0']['#']))) {
if (isset($entry_info['#']['COMMENT']['0']['#'])) {
$entry->entrycomment = backup_todb($entry_info['#']['COMMENT']['0']['#']);
} else {
$entry->entrycomment = backup_todb($entry_info['#']['ENTRYCOMMENT']['0']['#']);