From: hickert Date: Thu, 23 Oct 2008 07:33:43 +0000 (+0000) Subject: Updated PPD parsing. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad2f10a44bcd9b6ec2b3e6cdb966d556baf878c4;p=gosa.git Updated PPD parsing. -Hide warnings hat may occure due to ipload of non ppd files. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12759 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc index db3d54a25..2f176e75a 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc @@ -280,9 +280,9 @@ class printerPPDDialog extends plugin $res = @$this->ppdManager->loadDescription($_PathOnHdd); if($res){ $tmp = split("\n",$res); - $name = trim(preg_replace("/^\-/","",trim($tmp[1]))); - $vendor = trim($tmp[0]); - $model = trim(preg_replace("/".$vendor."/","",$name)); + $name = @trim(preg_replace("/^\-/","",trim($tmp[1]))); + $vendor = @trim($tmp[0]); + $model = @trim(preg_replace("/".$vendor."/","",$name)); } /* Check if parse was successfull */