Code

Removed doubled slash, fixed removement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Nov 2005 10:59:56 +0000 (10:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Nov 2005 10:59:56 +0000 (10:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1890 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 39a869fd2b16f3b1121a2c1b6c1d63a6d40062c2..4493e0be4a690a3adaeed6e120eb18966203040f 100644 (file)
@@ -519,9 +519,11 @@ class printgeneric extends plugin
     }else{
       $method="http://";
     }
-    
-    $str = $method.$_SERVER['SERVER_NAME']."/ppd/";
-    $this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD'];
+  
+    if(!is_array($this->attrs['gotoPrinterPPD'])) {
+      $str = $method.$_SERVER['SERVER_NAME']."/ppd";
+      $this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD'];
+    }
 
     /* Append printer user 
      */