Skip to content

Commit

Permalink
Merge pull request #8389 from Sesquipedalian/3.0/possible_topic_columns
Browse files Browse the repository at this point in the history
Fixes undefined array key errors when modifying a message
  • Loading branch information
Sesquipedalian authored Jan 1, 2025
2 parents 8da032d + ee1972a commit 2536358
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 2536358

Please sign in to comment.