From ad2f10a44bcd9b6ec2b3e6cdb966d556baf878c4 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Oct 2008 07:33:43 +0000 Subject: [PATCH] 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 --- .../goto/admin/systems/ppd/class_printerPPDDialog.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.30.2