From d528aa37d3150d9f4751b427bd99a7947f1b248f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Nov 2007 08:59:17 +0000 Subject: [PATCH] Fixed PPD upload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7786 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printerPPDDialog.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc index a867c7075..a93e91bb4 100644 --- a/plugins/admin/systems/class_printerPPDDialog.inc +++ b/plugins/admin/systems/class_printerPPDDialog.inc @@ -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)); -- 2.30.2