Code

Fixed PPD upload
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Nov 2007 08:59:17 +0000 (08:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Nov 2007 08:59:17 +0000 (08:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7786 594d385d-05f5-0310-b6e9-bd551577e9d8

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));