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