From fc602576ab44cdec5c91f2b95fd117b25159f2b1 Mon Sep 17 00:00:00 2001
From: Simon
Date: Mon, 11 Apr 2011 15:31:54 +0200
Subject: fbgui - link zum anmelden nur wenn er noch nicht angemeldet ist
---
application/modules/fbgui/controllers/IndexController.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'application/modules/fbgui/controllers/IndexController.php')
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index 3567f70..c874d97 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -66,6 +66,9 @@ class Fbgui_IndexController extends Zend_Controller_Action
$bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
$res = $bootmenuentriesMapper->findBy(array('bootmenuID' => $bootmenuID),false);
$this->view->entries = $res;
+ if (!Zend_Auth::getInstance()->hasIdentity()) {
+ echo "Goto Login to get your Bootmenu";
+ }
}
else{
/*
@@ -76,7 +79,7 @@ class Fbgui_IndexController extends Zend_Controller_Action
'Your client is '.$session->getClientID(),
'there is no bootmenu for you');
*/
- echo "Goto Login to get a Bootmenu";
+ echo "Goto Login to get your Bootmenu";
}
}
else{
--
cgit v1.2.3-55-g7522