summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit2017-06-29 15:48:11 (GMT)
committerolstjos2017-06-29 15:48:11 (GMT)
commitfe9f1c7ed3da548c57e140a02ddc788d0accbc7c (patch)
tree66d62db79ab9d71fda5d9ae3418d92c145625cba
parentf0b1473b410b69df514c46ba43d7766cbe217f26 (diff)
Issue #2875368 by nightwalkr, upunkt: Notice: Undefined index: label in media_wysiwyg_form_media_admin_config_browser_alter
-rw-r--r--modules/media_wysiwyg/media_wysiwyg.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/media_wysiwyg/media_wysiwyg.module b/modules/media_wysiwyg/media_wysiwyg.module
index 9450697..8388033 100644
--- a/modules/media_wysiwyg/media_wysiwyg.module
+++ b/modules/media_wysiwyg/media_wysiwyg.module
@@ -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(