Skip to content

Commit

Permalink
fix error with simple comillas
Browse files Browse the repository at this point in the history
  • Loading branch information
skalero01 committed Aug 25, 2018
1 parent 549130f commit ec6f7b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DbExporter/DbSeeding.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ private function insertPropertyAndValue($prop, $value)
}

if(strlen($value) > 0) {
$value = "`{$value}`";
$value = str_replace("'", "\'", $value);
$value = "'{$value}'";
} else {
$value = 'null';
}
Expand Down

0 comments on commit ec6f7b3

Please sign in to comment.