Merge remote-tracking branch 'origin/QA_4_0' into QA_4_0

This commit is contained in:
Weblate 2013-06-11 14:58:24 +02:00
commit a0e86e92f1
2 changed files with 11 additions and 2 deletions

View File

@ -14,6 +14,7 @@ not set
- bug #3964 Import using https does not work
- bug Missing removeCRLF option in ExportCsv and ExportExcel plugins
- bug #3631 Drop not working Visio schema export.
- bug #3645 Better handling of invalid ODS documents
4.0.3.0 (2013-06-05)
- bug #3941 Recent tables list always empty

View File

@ -175,8 +175,16 @@ class ImportOds extends ImportPlugin
);
$error = true;
} else {
$sheets = $xml->children('office', true)->{'body'}->{'spreadsheet'}
->children('table', true);
$root = $xml->children('office', true)->{'body'}->{'spreadsheet'};
if (empty($root)) {
$sheets = array();
$message = PMA_Message::error(
__('Could not parse OpenDocument Spreasheet!')
);
$error = true;
} else {
$sheets = $root->children('table', true);
}
}
$tables = array();