From: hickert Date: Thu, 31 Aug 2006 11:42:56 +0000 (+0000) Subject: Fixed ppd selection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf03aa50ef4a269d6a82f9e80eed43e78f4ee9ef;p=gosa.git Fixed ppd selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4560 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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: ?>