changeset 1088:4f132374df75

Fix a 10L.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 26 Jan 2017 00:48:34 +0200
parents 4c76b4994414
children 00632d30bafe
files pages/vote.inc.php
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pages/vote.inc.php	Thu Jan 26 00:38:06 2017 +0200
+++ b/pages/vote.inc.php	Thu Jan 26 00:48:34 2017 +0200
@@ -17,6 +17,7 @@
 
 function stVoteLoginForm()
 {
+  $userKeyLen = stGetSetting("userKeyLength");
   return
     "<div class=\"voteLogin\">\n".
     " ".stGetFormStart("vote", "usrlogin.php").
@@ -36,8 +37,6 @@
 if (!stUserSessionAuth(FALSE))
 {
   // Perform authentication if we are not in session already
-  $userKeyLen = stGetSetting("userKeyLength");
-  
   if (($error = stGetRequestItem("error", 0, TRUE)) != 0)
   {
     echo