Commit fe9f1c7e authored by git's avatar git Committed by olstjos

Issue #2875368 by nightwalkr, upunkt: Notice: Undefined index: label in...

Issue #2875368 by nightwalkr, upunkt: Notice: Undefined index: label in media_wysiwyg_form_media_admin_config_browser_alter
parent f0b1473b
......@@ -281,7 +281,7 @@ function media_wysiwyg_form_media_admin_config_browser_alter(&$form, &$form_stat
$options = array();
foreach(field_info_field_types() as $key => $type) {
$options[$key] = $type['label'];
$options[$key] = (!empty($type['label']))? $type['label'] : ucfirst(str_replace("_"," ",$key));
}
asort($options);
$form['wysiwyg']['media_wysiwyg_wysiwyg_override_field_types'] = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment