diff options
author | INOPIAE <inopiae@cacert.org> | 2014-10-01 22:08:38 +0200 |
---|---|---|
committer | INOPIAE <inopiae@cacert.org> | 2014-10-01 22:08:38 +0200 |
commit | 3a5f13b14f21ce3e0ff8107c31c563a9de8c3fb0 (patch) | |
tree | 5ca0770c1cc62fd92169276ad97ab1fe1d2ceaeb | |
parent | 621d53d01f38c023e4947f4bbe1d31d984809465 (diff) | |
download | cacert-devel-bug-1310.tar.gz cacert-devel-bug-1310.tar.xz cacert-devel-bug-1310.zip |
bug 1310: I added the check to make sure that only active emails and domainsbug-1310
-rw-r--r-- | www/disputes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/disputes.php b/www/disputes.php index 34a447a..cf955b0 100644 --- a/www/disputes.php +++ b/www/disputes.php @@ -223,7 +223,7 @@ } //check if email belongs to locked account - $res = mysql_query("select 1 from `email`, `users` where `email`.`email`='$email' and `email`.`memid`=`users`.`id` and (`users`.`assurer_blocked`=1 or `users`.`locked`=1)"); + $res = mysql_query("select 1 from `email`, `users` where `email`.`email`='$email' and `email`.`memid`=`users`.`id` and (`users`.`assurer_blocked`=1 or `users`.`locked`=1) and `email`.`deleted` = 0"); if(mysql_num_rows($res) > 0) { showheader(_("Email Dispute")); @@ -312,7 +312,7 @@ } //check if domain belongs to locked account - $res = mysql_query("select 1 from `domains`, `users` where `domains`.`domain`='$domain' and `domains`.`memid`=`users`.`id` and (`users`.`assurer_blocked`=1 or `users`.`locked`=1)"); + $res = mysql_query("select 1 from `domains`, `users` where `domains`.`domain`='$domain' and `domains`.`memid`=`users`.`id` and (`users`.`assurer_blocked`=1 or `users`.`locked`=1) and `domains`.`deleted` = 0"); if(mysql_num_rows($res) > 0) { showheader(_("Domain Dispute")); |