# HG changeset patch # User Matti Hamalainen # Date 1385324586 -7200 # Node ID f20df1da0903d22f32f0703c7d7669249b76f875 # Parent 92698b090c359e44c850ea06eebbe71c63a5ea6c Fix some 10L's. diff -r 92698b090c35 -r f20df1da0903 vote.inc.php --- 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 @@ "". stGetFormRadioButtonInput( "entry".$eid, "", "", $i, ($i == $val), + "", "onClick=\"updateVote(".$eid.",".$i.")\""). ""; }