Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_printerPPDDialog.inc
index a867c707536aa141e9f7fcce27e0751df96841c9..a93e91bb4e56ad2a40d99cafcc41e6827d0e57c3 100644 (file)
@@ -298,9 +298,6 @@ class printerPPDDialog extends plugin
       }
     }
 
-    /* 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))){
@@ -309,6 +306,9 @@ class printerPPDDialog extends plugin
       }
     }
   
+    /* Open file handle */
+    $fp           = fopen($filename,"w+");
+
     /* Check file handle & contents */
     if(!$fp){
       print_red(sprintf(_("Can't save file '%s'."),$filename));