mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fix restore notice. Merged from MOODLE_16_STABLE.
This commit is contained in:
parent
f92cf442db
commit
ff1b2fadbe
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user