summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-01-12 22:45:44 +0100
committerINOPIAE <inopiae@cacert.org>2013-01-12 22:45:44 +0100
commit501be9ad2c8831b740dc278d23da001fc9971852 (patch)
tree59913d5586847087519bf4e912c5138b3705c235
parent848f023d1ee4674149797411ded9c5a9b67a266f (diff)
downloadcacert-devel-bug-1133.tar.gz
cacert-devel-bug-1133.tar.xz
cacert-devel-bug-1133.zip
bug 1133: Changed order of the check if the account can be assuredbug-1133
-rw-r--r--www/wot.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/www/wot.php b/www/wot.php
index 6ee014d..3401f57 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -148,14 +148,6 @@ function send_reminder()
if($oldid == 5)
{
- $query = "select * from `users` where `email`='".mysql_escape_string(stripslashes($_POST['email']))."' and `locked`=1";
- $res = mysql_query($query);
- if(mysql_num_rows($res) >= 1)
- {
- $_SESSION['_config']['noemailfound'] = 0;
- show_page("EnterEmail","",_("This account is locked and can not be assured. For more information ask support@cacert.org."));
- exit;
- }
$query = "select * from `users` where `email`='".mysql_escape_string(stripslashes($_POST['email']))."' and `deleted`=0";
$res = mysql_query($query);
if(mysql_num_rows($res) != 1)
@@ -173,6 +165,14 @@ function send_reminder()
exit;
}
}
+ $query = "select * from `users` where `email`='".mysql_escape_string(stripslashes($_POST['email']))."' and `locked`=1";
+ $res = mysql_query($query);
+ if(mysql_num_rows($res) >= 1)
+ {
+ $_SESSION['_config']['noemailfound'] = 0;
+ show_page("EnterEmail","",_("This account is locked and can not be assured. For more information ask support@cacert.org."));
+ exit;
+ }
}
if($oldid == 5 || $oldid == 6)