From: hickert Date: Thu, 3 Nov 2005 12:49:10 +0000 (+0000) Subject: Fixed hangup, if the selected ppd file wasn't readable anymore X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b863f366aa3f5ec2d3b7925a329d92a9aac6829;p=gosa.git Fixed hangup, if the selected ppd file wasn't readable anymore git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1819 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 8c794ba4b..2ed5f19c9 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -351,7 +351,11 @@ class printgeneric extends plugin require_once ("class_ppdManager.inc"); $ppdManager= new ppdManager('/var/spool/ppd/'); if(!empty($this->gotoPrinterPPD)){ - $smarty->assign("driverInfo", $ppdManager->loadDescription($this->gotoPrinterPPD)); + if((!file_exists($this->gotoPrinterPPD))){ + $smarty->assign("driverInfo", "".sprintf(_("Your currently selected PPD file '%s' doesn't exists."),$this->gotoPrinterPPD)).""; + }else{ + $smarty->assign("driverInfo", $ppdManager->loadDescription($this->gotoPrinterPPD)); + } }else{ $smarty->assign("driverInfo", _("not defined")); }