diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index d80aa6d785..74ce43d4f8 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -1,6 +1,6 @@
-
+
getiTunesAppId()); ?>">
-
+
@@ -35,17 +35,17 @@
getActionCount() !== 0) {
+ if(isset($template) && $template->getActionCount() !== 0) {
$primary = $template->getPrimaryAction();
$others = $template->getOtherActions();
?>
@@ -76,7 +76,7 @@
- getFooterVisible()) { ?>
+ getFooterVisible()) { ?>