# HG changeset patch # User Matti Hamalainen # Date 1385342398 -7200 # Node ID efba5a51f8fa27740cc5ec08b2f3aae43531967a # Parent 19964ec7f55207fa53f9f96725f8872ee3bd3352 Fix some 10L's ... durr. diff -r 19964ec7f552 -r efba5a51f8fa usrajax.php --- 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"));