Skip to content

Commit

Permalink
Fix restore notice. Merged from MOODLE_16_STABLE.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Jun 12, 2006
1 parent f92cf44 commit ff1b2fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backup/restorelib.php
Expand Up @@ -1267,7 +1267,11 @@ function restore_create_gradebook($restore,$xml_file) {
$itemid = insert_record('grade_item',$item);

//Now process grade_exceptions
$exceptions = $ite_info['#']['GRADE_EXCEPTIONS']['0']['#']['GRADE_EXCEPTION'];
if (!empty($ite_info['#']['GRADE_EXCEPTIONS'])) {
$exceptions = $ite_info['#']['GRADE_EXCEPTIONS']['0']['#']['GRADE_EXCEPTION'];
} else {
$exceptions = array();
}

//Iterate over exceptions
for($j = 0; $j < sizeof($exceptions); $j++) {
Expand Down

0 comments on commit ff1b2fa

Please sign in to comment.