From 22f2e0957eb326f21a07385b8faa95a368bb7da1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 18 Sep 2006 06:25:57 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_printGeneric.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 */ -- 2.30.2