We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b699af commit cb521bfCopy full SHA for cb521bf
1 file changed
migrations/m9_remove_idea_bot.php
@@ -73,10 +73,10 @@ public function update_topic_authors()
73
while ($row = $this->db->sql_fetchrow($result))
74
{
75
$topics[$row['topic_id']] = [
76
- 'topic_poster_id' => $row['idea_author'],
77
- 'topic_poster_name' => $row['username'],
78
- 'topic_poster_colour' => $row['user_colour'],
79
- 'topic_first_post_id' => $row['topic_first_post_id'],
+ 'topic_poster_id' => $row['idea_author'] ?: ANONYMOUS,
+ 'topic_poster_name' => $row['username'] ?: '',
+ 'topic_poster_colour' => $row['user_colour'] ?: '',
+ 'topic_first_post_id' => $row['topic_first_post_id'] ?: 0,
80
];
81
}
82
$this->db->sql_freeresult($result);
0 commit comments