1
0

fix to only show on photo item pages. see http://bit.ly/90FxWm

This commit is contained in:
dmolavi 2010-08-08 14:18:41 -04:00
parent cf37aa5ceb
commit af883743e0

View File

@ -26,7 +26,7 @@ class ecard_block_Core {
$block = "";
switch ($block_id) {
case "ecard":
if ($theme->item()->is_photo() && module::get_var("ecard", "location") == "sidebar") {
if ($theme->item() && $theme->item()->is_photo() && module::get_var("ecard", "location") == "sidebar") {
$block = new Block();
$block->css_id = "g-send-ecard";
$block->title = t("eCard");