summaryrefslogtreecommitdiffstats
path: root/application/modules/user/layouts
diff options
context:
space:
mode:
authormichael pereira2011-03-30 17:23:30 +0200
committermichael pereira2011-03-30 17:23:30 +0200
commita29a04821929e737a436b842e519845d0d29da94 (patch)
treea855b6cc3bfbff0399eba5c22a540dcf90932626 /application/modules/user/layouts
parentFBGui angepasst (button) (diff)
downloadpbs2-a29a04821929e737a436b842e519845d0d29da94.tar.gz
pbs2-a29a04821929e737a436b842e519845d0d29da94.tar.xz
pbs2-a29a04821929e737a436b842e519845d0d29da94.zip
Bootos & Bootiso
Diffstat (limited to 'application/modules/user/layouts')
-rw-r--r--application/modules/user/layouts/user.phtml14
1 files changed, 8 insertions, 6 deletions
diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml
index ae07f4d..184324a 100644
--- a/application/modules/user/layouts/user.phtml
+++ b/application/modules/user/layouts/user.phtml
@@ -88,12 +88,14 @@ if(Zend_Auth::getInstance()->hasIdentity()){
$personMapper->find($userIDsNamespace['personID'],$person);
echo "<b><i>".$person->getFirstname()." ".$person->getName()."</i></b>";
- echo " in der Rolle ";
-
- $role = new Application_Model_Role();
- $roleMapper = new Application_Model_RoleMapper();
- $role = $roleMapper->find($userIDsNamespace['roleID']);
- echo "<b><i>".$role->getTitle()."</i></b>";
+ if(isset($userIDsNamespace['roleID'])){
+ echo " in der Rolle ";
+
+ $role = new Application_Model_Role();
+ $roleMapper = new Application_Model_RoleMapper();
+ $role = $roleMapper->find($userIDsNamespace['roleID']);
+ echo "<b><i>".$role->getTitle()."</i></b>";
+ }
}
?>
</div>