mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #3824 from gschlager/phpbb3-importer-patch1
FIX: phpBB3 importer should ignore unknown topic_id in internal link
This commit is contained in:
commit
f8aca6d530
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ module ImportScripts::PhpBB3
|
|||
end
|
||||
|
||||
def get_first_post_id(topic_id)
|
||||
query(<<-SQL).first[:topic_first_post_id]
|
||||
query(<<-SQL).try(:first).try(:[], :topic_first_post_id)
|
||||
SELECT topic_first_post_id
|
||||
FROM #{@table_prefix}_topics
|
||||
WHERE topic_id = #{topic_id}
|
||||
|
|
Loading…
Reference in a new issue