Commit 20938093 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix php warning in logs


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 7997450b
......@@ -58,7 +58,8 @@ class PluginBlocktypeGallery extends PluginBlocktype {
public static function render_instance(BlockInstance $instance, $editing=false) {
$configdata = $instance->get('configdata'); // this will make sure to unserialize it for us
$configdata['viewid'] = $instance->get('view');
switch ($configdata['style']) {
$style = isset($configdata['style']) ? intval($configdata['style']) : 0;
switch ($style) {
case 0: // thumbnails
$template = 'thumbnails';
break;
......
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