Skip to content

Commit

Permalink
Fix uncaught exception when editing a message and using PostgreSQL. S…
Browse files Browse the repository at this point in the history
…ee GitHub Issue #3680.
  • Loading branch information
campbell-m committed Jun 5, 2024
1 parent 30dc76a commit 46bb4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/MRBS/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function save() : bool
'until' => $this->until
])
);
$sql = db()->syntax_upsert($data, _tbl('variables'), $sql_params, 'id', ['id'], true);
$sql = db()->syntax_upsert($data, _tbl('variables'), $sql_params, 'variable_name', ['id'], true);

return (0 < db()->command($sql, $sql_params));
}
Expand Down

0 comments on commit 46bb4d4

Please sign in to comment.