diff options
Diffstat (limited to 'modules/info/helpers/info_block.php')
-rw-r--r-- | modules/info/helpers/info_block.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 40e5bb97..61115b2a 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -20,11 +20,13 @@ class info_block_Core { public static function sidebar_blocks($theme) { - $block = new Block(); - $block->id = "gMetadata"; - $block->title = _("Item Info"); - $block->content = new View("info_block.html"); - return $block; + if ($theme->item()) { + $block = new Block(); + $block->id = "gMetadata"; + $block->title = _("Item Info"); + $block->content = new View("info_block.html"); + return $block; + } } public static function thumbnail_info($theme, $item) { |