Skip to content

Commit 9454558

Browse files
committed
optimize
1 parent 81913d1 commit 9454558

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

beta/class_backup_SQL.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ protected function csv_pdo($con, $table, $del, $enc, $header_name) {
307307

308308
$num_fields = $result->columnCount();
309309

310+
if (!is_string($del) || strlen($del) != 1)
311+
$del = ",";
312+
if (!is_string($enc) || strlen($enc) != 1)
313+
$enc = "";
314+
310315
/* HEADER */
311316

312317
if ($header_name === true) {

0 commit comments

Comments
 (0)