Fix restore notice. Merged from MOODLE_16_STABLE.

This commit is contained in:
tjhunt 2006-06-12 15:37:05 +00:00
parent f92cf442db
commit ff1b2fadbe

View File

@ -1267,7 +1267,11 @@
$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++) {