summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fa14f6)
raw | patch | inline | side by side (parent: 6fa14f6)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Jul 2009 12:51:04 +0000 (12:51 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Jul 2009 12:51:04 +0000 (12:51 +0000) |
instead of trying to parse that empty file.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13902 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13902 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc | patch | blob | history |
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 db3e50c60c90f55c7887a7cc7c35fae716af36ae..db881d2260709c5b29f8e6f1706c55ea151bb830 100644 (file)
}
function loadProperties($ppdFile)
- {
+ {
+ if(!(filesize($ppdFile))) {
+ trigger_error(_('Parsing PPD file failed - File has 0 bytes'));
+ }
+
$group= "";
$option= "";
$properties= array();
}
function loadDescription($ppdFile)
- {
+ {
+ if(!(filesize($ppdFile))) {
+ trigger_error(_('Parsing PPD file failed - File has 0 bytes'));
+ }
+
$ppdDesc = array();
/* Only parse complete PPD file again, if it was changed */