From 4144b04862c957bd06a2e269f74cba01d23e85bb Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 25 Aug 2008 07:45:40 +0000 Subject: [PATCH] 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 --- gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]); } } -- 2.30.2