From b519a8fb1808190fdd58d3e718ccd29ea21530ee Mon Sep 17 00:00:00 2001 From: floridave Date: Mon, 10 Sep 2012 18:04:55 -0600 Subject: [PATCH] Update 3.0/modules/author/helpers/author_block.php Update so module will work with dynamic modules. --- 3.0/modules/author/helpers/author_block.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3.0/modules/author/helpers/author_block.php b/3.0/modules/author/helpers/author_block.php index 71f479e1..d7477055 100644 --- a/3.0/modules/author/helpers/author_block.php +++ b/3.0/modules/author/helpers/author_block.php @@ -24,6 +24,9 @@ class author_block_Core { static function get($block_id, $theme) { $item = $theme->item; + if (!$item) { + return; + } if ($block_id != 'author' || $item->is_album() ) { return ''; }