Skip to content

Commit 3defcfa

Browse files
author
Radovan Janjic
committed
Fix
1 parent 6ecea04 commit 3defcfa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

MySQL_wrapper.class.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ function query2CSV($sql, $file, $delimiter = ',', $enclosure = '"', $escape = '\
619619
return ($this->query($sql)) ? $file : FALSE;
620620
}
621621

622-
623622
/** Create table from CSV file and imports CSV data to Table with possibility to update rows while import.
624623
* @param string $file - CSV File path
625624
* @param string $table - Table name
@@ -821,9 +820,7 @@ function strReplace($table, $columns, $search, $replace, $where = NULL, $limit =
821820
$affected = 0;
822821
if ($this->affected > 0) {
823822
while ($row = $this->fetchArray($q)) {
824-
if ($row['columns'] != '') {
825-
$affected += $this->strReplace($row['table'], $row['columns'], $search, $replace, $where, $limit);
826-
}
823+
$affected += $this->strReplace($row['table'], $row['columns'], $search, $replace, $where, $limit);
827824
}
828825
}
829826
$this->freeResult($q);

0 commit comments

Comments
 (0)