summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoseph.olstad2018-08-17 21:49:05 (GMT)
committerJoseph Olstad2018-08-17 21:49:29 (GMT)
commit815c76cbc65d3bd49e209e709ba8c73b3c212bc2 (patch)
tree76049bb3c91bc553ed7e07916e537cba289e7c62
parent6436b05604194abb1f26b4ea16494477cb8eccfb (diff)
Issue #2985057 by joseph.olstad, dmytro-aragorn, harshil.maradiya: If media_bulk_upload, plupload and multiform are disabled: watchdog Notice: Undefined index multiselect in template_preprocess_media_views_view_media_browser()7.x-2.20
-rw-r--r--media.views.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media.views.inc b/media.views.inc
index 5fd2c02..bf22d49 100644
--- a/media.views.inc
+++ b/media.views.inc
@@ -127,7 +127,7 @@ function template_preprocess_media_views_view_media_browser(&$vars) {
$vars['wrapper_suffix'] = '</div>';
$vars['list_type_prefix'] = '<' . $handler->options['type'] . ' id="media-browser-library-list" class="' . implode(' ', $class) . '">';
$vars['list_type_suffix'] = '</' . $handler->options['type'] . '>';
- $vars['aria_role'] = $params['multiselect'] ? 'checkbox' : 'radio';
+ $vars['aria_role'] = (isset($params['multiselect']) && $params['multiselect']) ? 'checkbox' : 'radio';
// Run theming variables through a standard Views preprocess function.
template_preprocess_views_view_unformatted($vars);