diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc
index a867c707536aa141e9f7fcce27e0751df96841c9..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));