Fix poll import (XF)
authorTim Düsterhus <tim@bastelstu.be>
Wed, 11 Feb 2015 19:57:16 +0000 (20:57 +0100)
committerTim Düsterhus <tim@bastelstu.be>
Wed, 11 Feb 2015 19:57:16 +0000 (20:57 +0100)
files/lib/system/exporter/XF12xExporter.class.php

index 1add2d461d159743bb87929dc7bf8fd736b0a21c..e350f2d830a67cfd842de2d40698a7f8a4fb72bc 100644 (file)
@@ -942,7 +942,7 @@ class XF12xExporter extends AbstractExporter {
                                'endTime' => $row['close_date'],
                                'isChangeable' => 0,
                                'isPublic' => $row['public_votes'] ? 1 : 0,
-                               'maxVotes' => $row['multiple'] ? $row['responses'] : 1,
+                               'maxVotes' => isset($row['max_votes']) ? $row['max_votes'] : ($row['multiple'] ? $row['responses'] : 1),
                                'votes' => $row['voter_count']
                        ));
                }