From: psc Date: Tue, 7 Jul 2009 12:52:28 +0000 (+0000) Subject: Also return if a file is 0 bytes long. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ffe43fa891a60a6632d452cd01e9a6c24d0ca390;p=gosa.git Also return if a file is 0 bytes long. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13904 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc b/trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc index db881d226..64d23e3fd 100644 --- a/trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc +++ b/trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc @@ -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();