diff options
| author | michael pereira | 2011-03-30 17:23:30 +0200 |
|---|---|---|
| committer | michael pereira | 2011-03-30 17:23:30 +0200 |
| commit | a29a04821929e737a436b842e519845d0d29da94 (patch) | |
| tree | a855b6cc3bfbff0399eba5c22a540dcf90932626 /application/modules/user/layouts | |
| parent | FBGui angepasst (button) (diff) | |
| download | pbs2-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.phtml | 14 |
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> |
