From: tjhunt Date: Mon, 12 Jun 2006 15:37:05 +0000 (+0000) Subject: Fix restore notice. Merged from MOODLE_16_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ff1b2fadbe514f307c9cbe1ad4f4026739b89d04;p=moodle.git Fix restore notice. Merged from MOODLE_16_STABLE. --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 628373ff1e..b161d68131 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -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++) {