Code

Updated ACL handling in info page
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Dec 2010 14:49:03 +0000 (14:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Dec 2010 14:49:03 +0000 (14:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20498 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/infoPage/class_infoPage.inc

index ec0aba6216b6b9ab02a6cb20fc21f804f2ac6f51..078bc7501ff95541478e9b0fd1b3f9266bb84bc9 100644 (file)
@@ -139,6 +139,8 @@ class infoPage extends plugin
         if(preg_match("/r/", $this->ui->get_permissions($this->ui->dn,"users/user", "homePostalAddress")) && 
                 isset($this->attrs['homePostalAddress'][0])){
             $smarty->assign("homePostalAddress", preg_replace("/\n/", "<br>", $this->attrs['homePostalAddress'][0]));
+        }else{
+            $smarty->assign("homePostalAddress", "");
         }
 
         // Assign JPEG Photo only if it is set and if we are allowed to view it.
@@ -154,6 +156,8 @@ class infoPage extends plugin
         if(preg_match("/r/", $this->ui->get_permissions($this->ui->dn,"users/user", "dateOfBirth")) && 
                 isset($this->attrs['dateOfBirth'][0])){
             $smarty->assign("dateOfBirth", date('d.m.Y',strtotime($this->attrs['dateOfBirth'][0])));
+        }else{
+            $smarty->assign("dateOfBirth","");
         }
 
         $smarty->assign("rand", rand(0, 99999999));