Skip to content

Commit

Permalink
Dev Small fix
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9551 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Nov 28, 2010
1 parent fae9c4d commit 5c57049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/login_check.php
Expand Up @@ -196,7 +196,7 @@
$sIp= $_SERVER['REMOTE_ADDR'];
$query = "SELECT * FROM ".db_table_name('failed_login_attempts'). " WHERE ip='$sIp';";
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
$result = $connect->query($query) or safe_die ($query."<br />".$connect->ErrorMsg());
$result = $connect->query($query);
$bCannotLogin = false;
$intNthAttempt = 0;
if ($result->RecordCount() >= 1)
Expand All @@ -212,7 +212,7 @@
if (time() > $iLastAttempt + $timeOutTime){
$bCannotLogin = false;
$query = "DELETE FROM ".db_table_name('failed_login_attempts'). " WHERE ip='$sIp';";
$result = $connect->query($query) or safe_die ($query."<br />".$connect->ErrorMsg());
$result = $connect->query($query);
}

}
Expand Down

0 comments on commit 5c57049

Please sign in to comment.