Code

More speed optimizations
[gosa.git] / plugins / admin / systems / class_printGeneric.inc
index 9cccd381a2afd013918ff2dcada07f989a971ad6..cc57c88fad2638ebd49c0f83a1ec0b2a62be2866 100644 (file)
@@ -712,12 +712,13 @@ class printgeneric extends plugin
     }
 
     /* Only save ppd path, if the path is not empty (no ppd selected )*/ 
-    if(count($this->gotoPrinterPPD)) {
+    if(!empty($this->gotoPrinterPPD)) {
       $this->attrs['gotoPrinterPPD'] = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD);
     }else{
       $this->attrs['gotoPrinterPPD'] = array();
     }
 
+
     /* Append printer user 
      */
     $this->attrs['gotoUserPrinter']=array();