Code

Updated a couple of values
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_printGeneric.inc
index 702212d4d1cebea43bc2fa6cdc349d41e3bd56ef..46aa1f1f8b472dda1934e45113d3b409b57a2fcb 100644 (file)
@@ -501,8 +501,8 @@ class printgeneric extends plugin
 
     /* Parse selected ppd file */
     $config = session::get('config');
-    if ($config->get_cfg_value("ppd_path") != ""){
-      $path = $config->get_cfg_value("ppd_path");
+    if ($config->get_cfg_value("ppdPath") != ""){
+      $path = $config->get_cfg_value("ppdPath");
       if(!preg_match("/\/$/",$path)){
         $path = $path."/";
       }
@@ -866,8 +866,7 @@ class printgeneric extends plugin
 
       /* Remove empty values */ 
       foreach($this->attrs as $name => $value){
-        $value = trim($value);
-        if($value == ""){
+        if(empty($value)){
           unset($this->attrs[$name]);
         }
       }