Commit d9fe1f99 authored by Remon's avatar Remon

Issue #1212298 by Remon: Undefined Property Error in Views w/ Multiple Displays

parent 8842f54f
......@@ -21,7 +21,7 @@ class views_plugin_pager_infinite_scroll extends views_plugin_pager_full {
function render($input) {
global $base_url;
$content_selector = '';
$style_options = $this->view->display_handler->default_display->options['style_options'];
$style_options = $this->view->style_options;
$items_selector = '';
$img_path = $base_url . '/' . drupal_get_path('module', 'views_infinite_scroll') . '/images/ajax-loader.gif';
switch ($this->view->plugin_name) {
......@@ -34,7 +34,7 @@ class views_plugin_pager_infinite_scroll extends views_plugin_pager_full {
$items_selector = 'tr';
break;
case 'list':
if (array_key_exists('wrapper_class', $style_options)) {
if (array_key_exists('wrapper_class', $style_options) && !empty($style_options['wrapper_class'])) {
$wrapper_class = '.' . $style_options['wrapper_class'];
} else {
$wrapper_class = '.item-list';
......
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