From 6b863f366aa3f5ec2d3b7925a329d92a9aac6829 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 3 Nov 2005 12:49:10 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_printGeneric.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")); } -- 2.30.2