Code

Fixed PHP warning in printer Generic.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Aug 2008 07:45:40 +0000 (07:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Aug 2008 07:45:40 +0000 (07:45 +0000)
-If printer was created there were some warning displayed

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12265 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc

index 702212d4d1cebea43bc2fa6cdc349d41e3bd56ef..fdd8f3809f08d6003fce63b8f9241902326b2ffd 100644 (file)
@@ -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]);
         }
       }