From 676996361c8ea292e0e41f57a72f34b180c08760 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 26 Jun 2012 13:14:16 -0400
Subject: [PATCH] Avoid fatal error when account object is not set.

---
 .../vufind/jquerymobile/templates/default-footer-navbar.phtml   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/vufind/jquerymobile/templates/default-footer-navbar.phtml b/themes/vufind/jquerymobile/templates/default-footer-navbar.phtml
index 25bb38ba2b8..d39f4a356ff 100644
--- a/themes/vufind/jquerymobile/templates/default-footer-navbar.phtml
+++ b/themes/vufind/jquerymobile/templates/default-footer-navbar.phtml
@@ -4,7 +4,7 @@
     <? if (is_object($this->account) && $this->account->loginEnabled()): // hide login/logout if unavailable ?>
       <li><a rel="external" href="<?=$this->url('myresearch-home')?>"><?=$this->transEsc('Account')?></a></li>
     <? endif; ?>
-    <? if ($this->account->isLoggedIn()): ?>
+    <? if (is_object($this->account) && $this->account->isLoggedIn()): ?>
       <li><a rel="external" href="<?=$this->url('myresearch-logout')?>"><?=$this->transEsc("Log Out")?></a></li>
     <? endif; ?>
   </ul>
-- 
GitLab