summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-07 01:20:50 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-07 01:20:50 +0200
commitecb426405c54a71511c2c4949e22fb030d8cec3f (patch)
treebda8a8d902b1ddbcfe33ea4668d4a20bab1939c5
parent49a7ef88e33bd94a8b29b9f0dae40d91a24d04ad (diff)
downloadcacert-devel-ecb426405c54a71511c2c4949e22fb030d8cec3f.tar.gz
cacert-devel-ecb426405c54a71511c2c4949e22fb030d8cec3f.tar.xz
cacert-devel-ecb426405c54a71511c2c4949e22fb030d8cec3f.zip
bug 1138: Don't include not yet verified email addresses
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/notary.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index 83f33e7..0be8303 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -1322,7 +1322,7 @@ function get_email_address($userid, $primary,$deleted=0){
if ($primary) {
$filter= $filter." and `email`!='".mysql_real_escape_string($primary)."'";
}
- $query = "select * from `email` where `memid`='".$userid."'".$filter." order by `created`";
+ $query = "select * from `email` where `memid`='".$userid."' and `hash`='' ".$filter." order by `created`";
return mysql_query($query);
}