changeset 277:f20df1da0903

Fix some 10L's.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Nov 2013 22:23:06 +0200
parents 92698b090c35
children 0209e5e518a6
files vote.inc.php
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vote.inc.php	Sun Nov 24 22:22:51 2013 +0200
+++ b/vote.inc.php	Sun Nov 24 22:23:06 2013 +0200
@@ -46,7 +46,6 @@
 if (($mode = stGetSessionItem("mode")) == "vote")
 {
   stCommonAJAX("usrajax.php", "usrlogout.php", TRUE);
-  stGetCompoList(TRUE, TRUE);
 
   // Try fetching previously stored votes
   $sql = stPrepareSQL(
@@ -71,8 +70,7 @@
   foreach (stExecSQL("SELECT * FROM compos WHERE visible<>0 AND voting<>0") as $compo)
   {
     $cid = $compo["id"];
-
-    $nentries = stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$cid));
+    $nentries = stFetchSQLColumn("SELECT COUNT(*) FROM entries WHERE compo_id=".$cid);
     if ($nentries > 0)
     {
       echo
@@ -111,6 +109,7 @@
             "<td class=\"vvalue\">".
             stGetFormRadioButtonInput(
               "entry".$eid, "", "", $i, ($i == $val),
+              "",
               "onClick=\"updateVote(".$eid.",".$i.")\"").
             "</td>";
         }