Code

Added acls for printer glpi
[gosa.git] / plugins / admin / systems / class_printerPPDDialog.inc
index 09cf862d8e5785c0f470582ef482581b7844206c..9296afe61985cfcd1585baae1e9ef623dcdb16c7 100644 (file)
@@ -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:
 ?>