Skip to content

Commit

Permalink
Properly fix the update this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldiesmann committed Jul 5, 2024
1 parent 2cb628a commit 2c2c26b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Reactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function editreactions(): void
// No funny stuff now..
$new_react = trim($new_react);
if (!empty($new_react)) {
$add[] = [0 => $new_react];
$add[] = [$new_react];
}
}

Expand Down Expand Up @@ -235,7 +235,7 @@ public function editreactions(): void
if (!empty($updates)) {
$do_update = true;
// Do the update
Db::$db->insert('replace', '{db_prefix}reactions', ['id_react, name'], $updates, ['id_reaction']);
Db::$db->insert('replace', '{db_prefix}reactions', ['id_reaction' => 'int', 'name' => 'string'], $updates, ['id_reaction']);
}
}

Expand Down

0 comments on commit 2c2c26b

Please sign in to comment.