Mercurial > hg > fapweb
changeset 294:efba5a51f8fa
Fix some 10L's ... durr.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 25 Nov 2013 03:19:58 +0200 |
parents | 19964ec7f552 |
children | e387d717cf46 |
files | usrajax.php |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usrajax.php Mon Nov 25 03:12:35 2013 +0200 +++ b/usrajax.php Mon Nov 25 03:19:58 2013 +0200 @@ -82,13 +82,13 @@ // Set vote, if voting is enabled // if (!stChkSetting("allowVoting")) - stError("Voting is not enabled.") + stError("Voting is not enabled."); else if (stChkRequestItem("entry_id", $entry_id, array(CHK_TYPE, VT_INT, "Invalid data.")) && stChkRequestItem("vote", $vote, array(CHK_TYPE, VT_INT, "Invalid data."), - array(CHK_RANGE, VT_INT, array($voteMin, $voteMax), "Invalid vote value.")) + array(CHK_RANGE, VT_INT, array($voteMin, $voteMax), "Invalid vote value."))) { // Check if voting is enabled on the compo and voter is valid $sql = stPrepareSQL("SELECT * FROM votekeys WHERE key=%s", stGetSessionItem("key")); @@ -102,7 +102,7 @@ case "submit": if (!stChkSetting("allowVoting")) - stError("Voting is not enabled.") + stError("Voting is not enabled."); else { $sql = stPrepareSQL("SELECT * FROM votekeys WHERE key=%s", stGetSessionItem("key"));