From cf03aa50ef4a269d6a82f9e80eed43e78f4ee9ef Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 31 Aug 2006 11:42:56 +0000 Subject: [PATCH] Fixed ppd selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4560 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printerPPDDialog.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc index 09cf862d8..9296afe61 100644 --- a/plugins/admin/systems/class_printerPPDDialog.inc +++ b/plugins/admin/systems/class_printerPPDDialog.inc @@ -478,7 +478,14 @@ class printerPPDDialog extends plugin return($str); } - function check(){ return(plugin::check()); } + function check() + { + $message = plugin::check(); + if(empty($this->selectedPPD['link'])){ + $message[] = _("Please select a valid ppd file or use 'Cancel' to go back to printer configuration."); + } + return($message); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2