Fix issue with malformed conversation folders (MyBB)
authorTim Düsterhus <timwolla@googlemail.com>
Sat, 28 Dec 2013 16:42:44 +0000 (17:42 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sat, 28 Dec 2013 16:42:44 +0000 (17:42 +0100)
files/lib/system/exporter/MyBB16xExporter.class.php

index 90bb520ca17995e50c1b4ed9f26b660123a90ec4..204e85fef511bebedc059f61232626fbcef05248 100644 (file)
@@ -554,6 +554,7 @@ class MyBB16xExporter extends AbstractExporter {
                $statement = $this->database->prepareStatement($sql, $limit, $offset);
                $statement->execute();
                while ($row = $statement->fetchArray()) {
+                       if (empty($row['pmfolders'])) continue;
                        $folders = explode('$%%$', $row['pmfolders']);
                        foreach ($folders as $folder) {
                                list($folderID, $folderName) = explode('**', $folder);