Skip to content

Commit

Permalink
Fixes undefined array key errors when modifying a message
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Jan 1, 2025
1 parent 51c36f8 commit 688b338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Msg.php
Original file line number Diff line number Diff line change
Expand Up @@ -1751,9 +1751,9 @@ public static function modify(array &$msgOptions, array &$topicOptions, array &$
'id_topic' => $topicOptions['id'],
];
$possible_topic_columns = [
'sticky_mode' => ['int' => 'is_sticky'],
'lock_mode' => ['int' => 'locked'],
'poll' => ['int' => 'id_poll'],
'sticky_mode' => ['int', 'is_sticky'],
'lock_mode' => ['int', 'locked'],
'poll' => ['int', 'id_poll'],
];

// This allows mods to skip sending notifications if they don't want to.
Expand Down

0 comments on commit 688b338

Please sign in to comment.