mirror of
https://github.com/vrana/adminer.git
synced 2026-03-05 12:01:25 +01:00
Import and export
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@568 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
function dump_csv($row) {
|
||||
foreach ($row as $key => $val) {
|
||||
if (preg_match("~[\"\n,]~", $val)) {
|
||||
if (preg_match("~[\"\n,]~", $val) || (isset($val) && !strlen($val))) {
|
||||
$row[$key] = '"' . str_replace('"', '""', $val) . '"';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user