X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/509d1d70d0580e26a4467e123c06d2c8939f32cc..e61ac06c8cef6425af27ee29a0cd0ca908108eb2:/WEB-INF/lib/ttOrgImportHelper.class.php diff --git a/WEB-INF/lib/ttOrgImportHelper.class.php b/WEB-INF/lib/ttOrgImportHelper.class.php index 77458cfa..3afe2694 100644 --- a/WEB-INF/lib/ttOrgImportHelper.class.php +++ b/WEB-INF/lib/ttOrgImportHelper.class.php @@ -32,6 +32,7 @@ import('ttTaskHelper'); import('ttProjectHelper'); import('ttClientHelper'); import('ttInvoiceHelper'); +import('ttTimeHelper'); import('ttCustomFieldHelper'); import('ttExpenseHelper'); import('ttFavReportHelper'); @@ -525,7 +526,7 @@ class ttOrgImportHelper { // Read and parse the content of the file. During parsing, startElement is called back for each tag. $file = fopen($filename, 'r'); - while ($data = fread($file, 4096)) { + while (($data = fread($file, 4096)) && $this->errors->no()) { if (!xml_parse($parser, $data, feof($file))) { $this->errors->add(sprintf($i18n->get('error.xml'), xml_get_current_line_number($parser), @@ -554,7 +555,7 @@ class ttOrgImportHelper { // Read and parse the content of the file. During parsing, startElement is called back for each tag. $file = fopen($filename, 'r'); - while ($data = fread($file, 4096)) { + while (($data = fread($file, 4096)) && $this->errors->no()) { if (!xml_parse($parser, $data, feof($file))) { $this->errors->add(sprintf($i18n->get('error.xml'), xml_get_current_line_number($parser),