Skip to content

Commit

Permalink
fix update wrong SQL
Browse files Browse the repository at this point in the history
close #131 

Ausgeführt wurde `UPDATE `rex_neues_entry` SET `status` = -2 WHERE status`, dieser PR behebt das Problem.
  • Loading branch information
alxndr-w authored Nov 26, 2024
1 parent 600f029 commit 3d260a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
if (rex_version::compare('5.1.0', $this->getVersion(), '>')) {
$sql = rex_sql::factory();
$sql->setTable(rex::getTable('neues_entry'));
$sql->setWhere('status', 2);
$sql->setWhere('status = 2');
$sql->setValue('status', -2);
$sql->update();
}

0 comments on commit 3d260a6

Please sign in to comment.