From: hickert Date: Mon, 25 Aug 2008 07:45:40 +0000 (+0000) Subject: Fixed PHP warning in printer Generic. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4144b04862c957bd06a2e269f74cba01d23e85bb;p=gosa.git Fixed PHP warning in printer Generic. -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 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index 702212d4d..fdd8f3809 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -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]); } }