MDL-44630: Fixing PHP foreach warnings

This commit is contained in:
Mark Nielsen 2014-05-07 12:38:32 -07:00
parent 4bcde92185
commit e686494fbc

View File

@ -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;
}
}