Fix issues in poll export (phpBB)
authorTim Düsterhus <tim@bastelstu.be>
Wed, 19 Aug 2015 10:22:35 +0000 (12:22 +0200)
committerTim Düsterhus <tim@bastelstu.be>
Wed, 19 Aug 2015 10:22:35 +0000 (12:22 +0200)
files/lib/system/exporter/PhpBB3xExporter.class.php

index 03a78124800ee83dc41a7832af4f94a7939351e2..14e3e6ae726c397d89cfd07ff75707700e36bba2 100644 (file)
@@ -992,7 +992,7 @@ class PhpBB3xExporter extends AbstractExporter {
                $sql = "SELECT  COUNT(*) AS count
                        FROM    ".$this->databasePrefix."poll_options";
                $statement = $this->database->prepareStatement($sql);
-               $statement->execute(array());
+               $statement->execute();
                $row = $statement->fetchArray();
                return $row['count'];
        }
@@ -1005,7 +1005,7 @@ class PhpBB3xExporter extends AbstractExporter {
                        FROM            ".$this->databasePrefix."poll_options
                        ORDER BY        poll_option_id ASC";
                $statement = $this->database->prepareStatement($sql, $limit, $offset);
-               $statement->execute(array('post'));
+               $statement->execute();
                while ($row = $statement->fetchArray()) {
                        ImportHandler::getInstance()->getImporter('com.woltlab.wbb.poll.option')->import($row['topic_id'].'-'.$row['poll_option_id'], array(
                                'pollID' => $row['topic_id'],