diff --git a/templates/page.tpl.php b/templates/page.tpl.php
index 247c24d..c9fc057 100755
--- a/templates/page.tpl.php
+++ b/templates/page.tpl.php
@@ -70,7 +70,8 @@
     <div class="header" <?php print drupal_attributes($page['attributes_array']['header']); ?>>
       <?php if ($site_name): ?>
         <h1 class="site-name"><?php print $site_name; ?></h1>
-      <?php elseif ($logo): ?>
+      <?php endif; ?>
+      <?php if ($logo): ?>
         <h1>
           <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
         </h1>
