Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -166,6 +166,18 @@ class _MoveComments
|
||||
{
|
||||
$row->item();
|
||||
|
||||
/* Check the topic exists */
|
||||
try
|
||||
{
|
||||
\IPS\forums\Topic::load( $row->item()->record_topicid );
|
||||
}
|
||||
catch( \OutOfRangeException )
|
||||
{
|
||||
/* If the topic does not exist, reset the value so it can be re-created */
|
||||
$row->item()->record_topicid = NULL;
|
||||
$row->item()->save();
|
||||
}
|
||||
|
||||
/* First, create the topic if it doesn't already exist */
|
||||
if ( !$row->item()->record_topicid )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user