Skip to content

Commit

Permalink
Fix migration errors with deleted users
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed Mar 24, 2019
1 parent 5b699af commit cb521bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions migrations/m9_remove_idea_bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public function update_topic_authors()
while ($row = $this->db->sql_fetchrow($result))
{
$topics[$row['topic_id']] = [
'topic_poster_id' => $row['idea_author'],
'topic_poster_name' => $row['username'],
'topic_poster_colour' => $row['user_colour'],
'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,
];
}
$this->db->sql_freeresult($result);
Expand Down

0 comments on commit cb521bf

Please sign in to comment.