Code

Also return if a file is 0 bytes long.
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Jul 2009 12:52:28 +0000 (12:52 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Jul 2009 12:52:28 +0000 (12:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13904 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc

index db881d2260709c5b29f8e6f1706c55ea151bb830..64d23e3fd7b0e6001cf0125f5f807e1edc858501 100644 (file)
@@ -165,6 +165,7 @@ class ppdManager
   {
     if(!(filesize($ppdFile))) {
       trigger_error(_('Parsing PPD file failed - File has 0 bytes'));
+      return;
     }
 
                $group= "";
@@ -297,6 +298,7 @@ class ppdManager
   {
     if(!(filesize($ppdFile))) {
       trigger_error(_('Parsing PPD file failed - File has 0 bytes'));
+      return;
     }
 
                $ppdDesc = array();