Fix using reserved word

This commit is contained in:
Daniel Brendel
2024-06-10 14:50:04 +02:00
parent c0eb50f125
commit 605f017012
5 changed files with 6 additions and 6 deletions

View File

@@ -211,7 +211,7 @@ class TextBlockModule {
$icon = html_entity_decode('&#' . $icon, ENT_COMPAT | ENT_QUOTES);
ChatMsgModel::raw('INSERT INTO `' . ChatMsgModel::tableName() . '` (userId, message, system, created_at) VALUES(?, ?, 1, CURRENT_TIMESTAMP)', [
ChatMsgModel::raw('INSERT INTO `' . ChatMsgModel::tableName() . '` (userId, message, sysmsg, created_at) VALUES(?, ?, 1, CURRENT_TIMESTAMP)', [
$user->get('id'),
$icon . ' ' . $message
]);