[geeklog-cvs] geeklog-1.3/public_html/admin poll.php,1.29,1.30

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Tue Apr 22 12:59:37 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory internal.geeklog.net:/tmp/cvs-serv23862

Modified Files:
	poll.php 
Log Message:
Max. number of answers per poll was off by one (found & fixed by Tom Willet).


Index: poll.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/poll.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** poll.php	2 Feb 2003 19:46:47 -0000	1.29
--- poll.php	22 Apr 2003 16:59:35 -0000	1.30
***************
*** 265,273 ****
      $poll_templates->set_var('lang_cancel', $LANG25[15]);   
   
!     for ($i = 0; $i < $_CONF['maxanswers']; $i++) {
          $A = DB_fetchArray($answers);
          $poll_templates->set_var('answer_text', htmlentities ($A['answer']));
          $poll_templates->set_var('answer_votes', $A['votes']);
!         $poll_templates->parse('answer_option','answer',true);
      }
  
--- 265,275 ----
      $poll_templates->set_var('lang_cancel', $LANG25[15]);   
   
!     for ($i = 1; $i <= $_CONF['maxanswers']; $i++) {
          $A = DB_fetchArray($answers);
          $poll_templates->set_var('answer_text', htmlentities ($A['answer']));
          $poll_templates->set_var('answer_votes', $A['votes']);
!         if ($i < $_CONF['maxanswers']) {
!             $poll_templates->parse('answer_option','answer',true);
!         }
      }
  





More information about the geeklog-cvs mailing list