From ffe43fa891a60a6632d452cd01e9a6c24d0ca390 Mon Sep 17 00:00:00 2001 From: psc Date: Tue, 7 Jul 2009 12:52:28 +0000 Subject: [PATCH] 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 --- trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.30.2