From: hickert Date: Mon, 18 Sep 2006 06:25:57 +0000 (+0000) Subject: Fixed ppd saving, if empty then leave ldap attribute empty X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=22f2e0957eb326f21a07385b8faa95a368bb7da1;p=gosa.git Fixed ppd saving, if empty then leave ldap attribute empty git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4701 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index f032f5afc..9cccd381a 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -710,8 +710,13 @@ class printgeneric extends plugin }else{ $method="http://"; } - - $this->attrs['gotoPrinterPPD'] = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); + + /* Only save ppd path, if the path is not empty (no ppd selected )*/ + if(count($this->gotoPrinterPPD)) { + $this->attrs['gotoPrinterPPD'] = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); + }else{ + $this->attrs['gotoPrinterPPD'] = array(); + } /* Append printer user */