Commit 87f33d96 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warnings in unconfigured gallery block (bug #794369)



Change-Id: Ia77c6a21f8dcde5bff5efe2b316dd0aa038b054b
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 0b4b644a
......@@ -45,7 +45,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']) : 2;
switch ($style) {
case 0: // thumbnails
case 2: // squarethumbs
return array();
......
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