Commit 51a5b70b authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warning caused by unconfigured gallery block


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 674944ff
......@@ -43,7 +43,8 @@ class PluginBlocktypeGallery extends PluginBlocktype {
public static function get_instance_javascript(BlockInstance $instance) {
$configdata = $instance->get('configdata');
switch ($configdata['style']) {
$style = isset($configdata['style']) ? intval($configdata['style']) : 0;
switch ($style) {
case 0: // thumbnails
return array();
case 1: // slideshow
......
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