summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c23e28)
raw | patch | inline | side by side (parent: 2c23e28)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 1 Dec 2010 14:49:03 +0000 (14:49 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-core/plugins/generic/infoPage/class_infoPage.inc b/gosa-core/plugins/generic/infoPage/class_infoPage.inc
index ec0aba6216b6b9ab02a6cb20fc21f804f2ac6f51..078bc7501ff95541478e9b0fd1b3f9266bb84bc9 100644 (file)
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.
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));