Skip to content

Commit

Permalink
fixed bug in MigrateHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoffy committed Aug 17, 2022
1 parent 3b473e7 commit 57304c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion class/Common/MigrateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,11 @@ private function getColumns (string $line)
} else {
return false;
}
$attributes = \trim(\str_replace([$name, '`', ','], '', $line));

$attributes = \trim(\str_replace([$name, '`'], '', $line));
if (',' == \substr($attributes, - 1)) {
$attributes = substr($attributes, 0, strlen($attributes) - 1);
}
$columns['name'] = $name;
// update quotes
if (\strpos($attributes, "''") > 0) {
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- fixed bug with download zip (cesagonchu/goffy)
- adapted update due to new semantic versioning (goffy)
- updated viewerjs (goffy)
- fixed bug in MigrateHelper (goffy)

<h5>1.15 RC2</h5> [2021/04/19]
<hr>
Expand Down

0 comments on commit 57304c9

Please sign in to comment.