mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
FIX: phpBB3 importer should ignore unknonw topic_id in internal link
This commit is contained in:
parent
7bd51e7882
commit
ba0cbd5658
@ -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…
x
Reference in New Issue
Block a user