IPB4: Correctly handle not reading any threads in an iteration
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 21 Jan 2022 08:21:10 +0000 (09:21 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 21 Jan 2022 08:21:10 +0000 (09:21 +0100)
files/lib/system/exporter/IPB4xExporter.class.php

index 0ad5a89e2c6579bd521a213a1b48260d6b3f7bad..1485697f8bbcfe7973392035df3436459dfc1a02 100644 (file)
@@ -868,6 +868,10 @@ class IPB4xExporter extends AbstractExporter
             $threadIDs[] = $row['tid'];
         }
 
+        if (empty($threadIDs)) {
+            return;
+        }
+
         // get tags
         $tags = $this->getTags('forums', 'forums', $threadIDs);