summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a0d91d8)
raw | patch | inline | side by side (parent: a0d91d8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Sep 2006 06:25:57 +0000 (06:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Sep 2006 06:25:57 +0000 (06:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4701 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index f032f5afcbce601f06dd4a0ddf32e9c828d8ba91..9cccd381a2afd013918ff2dcada07f989a971ad6 100644 (file)
}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
*/