Completely skip thread export if no threadIDs were found (WBB 4.x)
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 14 Dec 2014 19:27:21 +0000 (20:27 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sun, 14 Dec 2014 19:27:21 +0000 (20:27 +0100)
files/lib/system/exporter/WBB4xExporter.class.php

index f3f7fa6c1cd66fd2571de007a36c40928343ae17..db617248a92d0debb19a98f75c82238166dc86c9 100644 (file)
@@ -816,6 +816,8 @@ class WBB4xExporter extends AbstractExporter {
                        if ($row['isAnnouncement']) $announcementIDs[] = $row['threadID'];
                }
                
+               if (empty($threadIDs)) return;
+               
                // get assigned boards (for announcements)
                $assignedBoards = array();
                if (!empty($announcementIDs)) {