Fixed poll import issue
authorMarcel Werk <burntime@woltlab.com>
Mon, 9 Sep 2013 18:49:01 +0000 (20:49 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 9 Sep 2013 18:49:01 +0000 (20:49 +0200)
files/lib/system/exporter/WBB3xExporter.class.php

index aed32f1e1f93db3db802ea4efece86fad0c803ef..74f3bdd7a6701e70208e496380a37342ab44d1dc 100644 (file)
@@ -1177,7 +1177,7 @@ class WBB3xExporter extends AbstractExporter {
                                'objectID' => $row['messageID'],
                                'question' => $row['question'],
                                'time' => $row['time'],
-                               'endTime' => $row['endTime'],
+                               'endTime' => ($row['endTime'] > 2147483647 ? 2147483647 : $row['endTime']),
                                'isChangeable' => ($row['votesNotChangeable'] ? 0 : 1),
                                'isPublic' => (!empty($row['isPublic']) ? $row['isPublic'] : 0),
                                'sortByVotes' => $row['sortByResult'],