fix to only show on photo item pages. see http://bit.ly/90FxWm
This commit is contained in:
parent
cf37aa5ceb
commit
af883743e0
@ -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");
|
||||
|
Reference in New Issue
Block a user