Fix special case of Excel export with ; at the end (bug #1511046).
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-06-27 Michal Čihař <michal@cihar.com>
|
||||
* libraries/import/csv.php: Fix special case of Excel export with ; at the
|
||||
end (bug #1511046).
|
||||
|
||||
2006-06-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/export/pdf.php, libraries/plugin_interface.lib.php, lang/*:
|
||||
bug #1504218: display an explanation for what is a PDF export
|
||||
|
@@ -236,10 +236,15 @@ if ($plugin_param == 'table') {
|
||||
}
|
||||
// Do we have correct count of values?
|
||||
if (count($values) != $required_fields) {
|
||||
$message = sprintf($strInvalidCSVFieldCount, $line);
|
||||
$show_error_header = TRUE;
|
||||
$error = TRUE;
|
||||
break;
|
||||
// Hack for excel
|
||||
if ($values[count($values) - 1] == ';') {
|
||||
unset($values[count($values) - 1]);
|
||||
} else {
|
||||
$message = sprintf($strInvalidCSVFieldCount, $line);
|
||||
$show_error_header = TRUE;
|
||||
$error = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$first = TRUE;
|
||||
|
Reference in New Issue
Block a user