Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php	(revision 817)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php	(revision 826)
@@ -173,8 +173,12 @@
     }
 
-    function assignComment(&$tpl, $option_id)
+    function assignComment(&$tpl, $option_id, $limit_start, $limit_end)
     {
-		$arrComment =& XoopsPollOption::getAllCommentByOptionId($option_id);
+		$arrComment =& XoopsPollOption::getAllCommentByOptionId($option_id, $limit_start, $limit_end);
+		$count = $arrComment['count'];
+		array_pop($arrComment);
 		$tpl->assign('arrComment', $arrComment);
+		
+		return $count;
     }
 
Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php	(revision 812)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php	(revision 826)
@@ -126,9 +126,9 @@
 
 	// public static
-	function &getAllCommentByOptionId($option_id)
+	function &getAllCommentByOptionId($option_id, $limit_start, $limit_end)
 	{
 		$db =& Database::getInstance();
 		$ret = array();
-		$sql = "SELECT u.uid, u.uname, l.rating_id, l.comment FROM ".$db->prefix("xoopspoll_log")." l LEFT JOIN ". $db->prefix("users") ." u  ON l.user_id = u.uid WHERE l.option_id=".intval($option_id)." ORDER BY time DESC";
+		$sql = "SELECT u.uid, u.uname, l.rating_id, l.comment FROM ".$db->prefix("xoopspoll_log")." l LEFT JOIN ". $db->prefix("users") ." u  ON l.user_id = u.uid WHERE l.option_id=".intval($option_id)." ORDER BY time DESC  LIMIT $limit_start, $limit_end";
 		$result = $db->query($sql);
 		while ( $myrow = $db->fetchArray($result) ) {
