mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-44630: Fixing PHP foreach warnings
This commit is contained in:
parent
4bcde92185
commit
e686494fbc
@ -466,6 +466,9 @@ class moodle1_converter extends base_converter {
|
||||
if (empty($record)) {
|
||||
throw new moodle1_convert_empty_storage_exception('required_not_stashed_data', array($stashname, $itemid));
|
||||
} else {
|
||||
if (empty($record->info)) {
|
||||
return array();
|
||||
}
|
||||
return $record->info;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user