From: hickert Date: Thu, 31 Aug 2006 11:27:52 +0000 (+0000) Subject: Added additional check for ppd selection. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b95f70e3388ff4e395d9355571d2c1b5d36c6c1;p=gosa.git Added additional check for ppd selection. If no ppd is selected display a message. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4557 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: ?>