From da466b5363ca647e24b0c1b156b680216eee4fdb Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Jul 2005 11:16:39 +0000 Subject: [PATCH] Fixed printer ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@947 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index bb684b90d..746517673 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -779,6 +779,10 @@ class posixAccount extends plugin } } + if(empty($this->attrs['gosaDefaultPrinter'])){ + $thid->attrs['gosaDefaultPrinter']=array(); + } + /* Save data to LDAP */ $ldap->cd($this->dn); $ldap->modify($this->attrs); @@ -920,9 +924,9 @@ class posixAccount extends plugin } } - if(empty($this->gosaDefaultPrinter)){ - $message[]= _("You need to specify a valid default printer."); - } + // if(empty($this->gosaDefaultPrinter)){ + // $message[]= _("You need to specify a valid default printer."); + // } return ($message); } -- 2.30.2