Plugin Directory

Changeset 2141859


Ignore:
Timestamp:
08/19/2019 11:51:10 AM (7 years ago)
Author:
Shopbop
Message:

Version 3.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shopbop-widget/trunk/lib/CoreWidgetPublic.php

    r2140530 r2141859  
    185185                'id'                            => $this->gen_uid(),
    186186                'width'                         => $width,
    187                 'maxWidth'                      => isset($optionSettings['widget_max_width']) ? $optionSettings['widget_max_width'] : false,
     187                'maxWidth'                      => (is_array($optionSettings) && array_key_exists('widget_max_width', $optionSettings) && isset($optionSettings['widget_max_width'])) ? $optionSettings['widget_max_width'] : false,
    188188                'activePane'                    => $optionSettings['widgetPaneToOpen'],
    189189                'marketingMessage'              => $mktMsg,
     
    198198                'categoryKeywordLinksSuffix'    => __("and more", constant($this->widgetPrefix . 'WIDGET_TRANSLATION')),
    199199                "langCode"                      => $core->getLanguage(),
    200                 "shopBotWidgetForceLocation"    => $GLOBALS['shopBotWidgetForceLocation']
     200                "shopBotWidgetForceLocation"    => (is_array($GLOBALS) && array_key_exists('shopBotWidgetForceLocation', $GLOBALS)) ? $GLOBALS['shopBotWidgetForceLocation'] : false,
    201201            )
    202202        );
Note: See TracChangeset for help on using the changeset viewer.