MDL-45675 mod_data: initialise options as an empty array to avoid error when there are none
This commit is contained in:
@@ -38,6 +38,7 @@ class data_field_menu extends data_field_base {
|
||||
|
||||
$str = '<div title="'.s($this->field->description).'">';
|
||||
|
||||
$options = array();
|
||||
$rawoptions = explode("\n",$this->field->param1);
|
||||
foreach ($rawoptions as $option) {
|
||||
$option = trim($option);
|
||||
|
||||
Reference in New Issue
Block a user