changeset 194:82803532a51c

Merged.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 11 Nov 2013 09:31:37 +0200
parents a14663f6497d (diff) 1e4f530c8310 (current diff)
children e65b2392fc0e
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vote.inc.php	Sun Nov 10 15:48:23 2013 +0200
+++ b/vote.inc.php	Mon Nov 11 09:31:37 2013 +0200
@@ -6,7 +6,6 @@
 //
 $sessionType = "user";
 require_once "majax.php";
-$userKeyLen = stGetSetting("userKeyLength");
 
 
 function stGetVoteButton()
@@ -29,6 +28,7 @@
 if (!stUserSessionAuth(FALSE))
 {
   // Perform authentication if we are not in session already
+  $userKeyLen = stGetSetting("userKeyLength");
   echo
     "<h1>Voting system</h1>\n".
     (stGetSessionItem("mode") == "error" ? "<p>ERROR occured, try again</p>." : "").