diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc
index 1863d8deb7d8219c50742f42e5377257854297c8..a93e91bb4e56ad2a40d99cafcc41e6827d0e57c3 100644 (file)
}
}
- /* Open file handle */
- $fp = fopen($filename,"w+");
-
/* Create the vendors path, if it doesn't exists already */
if(!is_dir($this->pathToPPD.$vendor)){
if(!(@mkdir($this->pathToPPD.$vendor))){
}
}
+ /* Open file handle */
+ $fp = fopen($filename,"w+");
+
/* Check file handle & contents */
if(!$fp){
print_red(sprintf(_("Can't save file '%s'."),$filename));
function getPrinterReload()
{
if(is_readable($this->pathToPPD)){
- $tmp = $this->ppdManager->getPrinterList(true);
+ $tmp = @$this->ppdManager->getPrinterList(true);
$this->ppdListHeader = $this->ppdList = array();