From: hickert Date: Tue, 13 Nov 2007 08:59:17 +0000 (+0000) Subject: Fixed PPD upload X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d528aa37d3150d9f4751b427bd99a7947f1b248f;p=gosa.git Fixed PPD upload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7786 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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));