Skip to content

Commit

Permalink
Deduplication: Use an associative array to track already added files
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Oct 13, 2023
1 parent 8f87d9d commit cbea348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function save() {
$fields[] = " {$id} ";
}
}else{
$this->$value = addcslashes($this->$value, "'");
$this->$value = str_replace("'", '', $this->$value);
$fields[] = " '{$this->$value}' ";
}
}
Expand Down

0 comments on commit cbea348

Please sign in to comment.