Fix XF2xExporter::countBoards()
authorTim Düsterhus <tim@bastelstu.be>
Mon, 26 Nov 2018 21:48:32 +0000 (22:48 +0100)
committerTim Düsterhus <tim@bastelstu.be>
Mon, 26 Nov 2018 21:48:32 +0000 (22:48 +0100)
files/lib/system/exporter/XF2xExporter.class.php

index 4b44571b40205ad2ed287b3fc14d5cb62bbd9aaf..7740bf4ba371b4ffab5389d8a0e39cb285be8882 100644 (file)
@@ -784,7 +784,7 @@ class XF2xExporter extends AbstractExporter {
                $statement = $this->database->prepareStatement($sql);
                $statement->execute(['Forum', 'Category', 'LinkForum']);
                $row = $statement->fetchArray();
-               return $row['count'];
+               return ($row['count'] ? 1 : 0);
        }
        
        /**