Skip to content

Commit

Permalink
fixed: use correct query param format in replace text
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Jan 23, 2025
1 parent 993ba92 commit bb76769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/AdminTools/Replacement.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function update(string $table_name) {
$from = $qb->param($this->from, ELGG_VALUE_STRING);
$to = $qb->param($this->to, ELGG_VALUE_STRING);

$qb->set('value', "replace(value, '{$from}', '{$to}')");
$qb->set('value', "replace(value, {$from}, {$to})");

$qb->where($qb->compare('value', 'like', "%{$this->from}%", ELGG_VALUE_STRING, true));

Expand Down

0 comments on commit bb76769

Please sign in to comment.