From 70d69c6b3e4ec0332c347680a2989ade392c6e2b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Dec 2010 14:49:03 +0000 Subject: [PATCH] Updated ACL handling in info page git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20498 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/generic/infoPage/class_infoPage.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-core/plugins/generic/infoPage/class_infoPage.inc b/gosa-core/plugins/generic/infoPage/class_infoPage.inc index ec0aba621..078bc7501 100644 --- a/gosa-core/plugins/generic/infoPage/class_infoPage.inc +++ b/gosa-core/plugins/generic/infoPage/class_infoPage.inc @@ -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/", "
", $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)); -- 2.30.2