Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php	(revision 726)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php	(revision 727)
@@ -45,4 +45,5 @@
 $renderer = new XoopsPollRenderer();
 $renderer->assignOptions($xoopsTpl, $option_id);
+$renderer->assignComment($xoopsTpl, $option_id);
 
 $xoopsTpl->assign('arrStatus', $arrStatus);
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 725)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php	(revision 727)
@@ -161,4 +161,11 @@
 		$tpl->assign('option_list', $options_arr);
     }
+
+    function assignComment(&$tpl, $option_id)
+    {
+		$arrComment =& XoopsPollOption::getAllCommentByOptionId($option_id);
+		$tpl->assign('arrComment', $arrComment);
+    }
+
 }
 ?>
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 722)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php	(revision 727)
@@ -120,4 +120,19 @@
 
 	// public static
+	function &getAllCommentByOptionId($option_id)
+	{
+		$db =& Database::getInstance();
+		$ret = array();
+		$sql = "SELECT u.uid, u.uname, l.rating_id, l.comment FROM ".$db->prefix("xoopspoll_log")." l, ". $db->prefix("users") ." u WHERE l.user_id = u.uid AND l.option_id=".intval($option_id)." ORDER BY time DESC";
+		$result = $db->query($sql);
+		while ( $myrow = $db->fetchArray($result) ) {
+			$ret[] = new XoopsPollOption($myrow);
+		}
+		//echo $sql;
+		return $ret;
+	}
+	
+	
+	// public static
 	function &getOptionByOptionId($option_id)
 	{
