[geeklog-cvs] geeklog-1.3/public_html/admin poll.php,1.34,1.35
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Sat Sep 27 16:45:44 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory geeklog_prod:/tmp/cvs-serv26586/public_html/admin
Modified Files:
poll.php
Log Message:
Fixed handling of "0" as a poll answer (bug #73).
Index: poll.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/poll.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** poll.php 1 Sep 2003 19:01:06 -0000 1.34
--- poll.php 27 Sep 2003 20:45:42 -0000 1.35
***************
*** 92,97 ****
$A[$i] = COM_stripslashes ($A[$i]);
}
!
! if (!empty ($question) && (sizeof ($A) > 0) && !empty ($A[0])) {
if ($_POLL_VERBOSE) {
--- 92,96 ----
$A[$i] = COM_stripslashes ($A[$i]);
}
! if (!empty ($question) && (sizeof ($A) > 0) && strlen ($A[0]) > 0) {
if ($_POLL_VERBOSE) {
***************
*** 156,160 ****
// Save poll answers
for ($i = 0; $i < sizeof($A); $i++) {
! if (!empty($A[$i])) {
if (empty($V[$i])) {
$V[$i] = "0";
--- 155,159 ----
// Save poll answers
for ($i = 0; $i < sizeof($A); $i++) {
! if (strlen ($A[$i]) > 0) {
if (empty($V[$i])) {
$V[$i] = "0";
More information about the geeklog-cvs
mailing list