summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-07 01:17:43 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-07 01:17:43 +0200
commit49a7ef88e33bd94a8b29b9f0dae40d91a24d04ad (patch)
tree7fb1a0cc4d766ce03fd085a8a3ec7261fbca19ab
parentba0eb9dd0edbc14a8cbd9a1836ddf65aedce9173 (diff)
downloadcacert-devel-49a7ef88e33bd94a8b29b9f0dae40d91a24d04ad.tar.gz
cacert-devel-49a7ef88e33bd94a8b29b9f0dae40d91a24d04ad.tar.xz
cacert-devel-49a7ef88e33bd94a8b29b9f0dae40d91a24d04ad.zip
bug 1138: Make code more resilient to changes
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/notary.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index 697e517..83f33e7 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -1290,7 +1290,7 @@ function get_user_data($userid, $deleted=0){
$userid = intval($userid);
$filter='';
if (0==$deleted) {
- $filter=' and `users`.`deleted`=0';
+ $filter .=' and `users`.`deleted`=0';
}
$query = "select * from `users` where `users`.`id`='$userid' ".$filter;
return mysql_query($query);
@@ -1317,7 +1317,7 @@ function get_email_address($userid, $primary,$deleted=0){
$userid = intval($userid);
$filter='';
if (0==$deleted) {
- $filter=' and `deleted`=0';
+ $filter .= ' and `deleted`=0';
}
if ($primary) {
$filter= $filter." and `email`!='".mysql_real_escape_string($primary)."'";
@@ -1337,7 +1337,7 @@ function get_domains($userid, $deleted=0){
$userid = intval($userid);
$filter='';
if (0==$deleted) {
- $filter=' and `deleted`=0';
+ $filter .= ' and `deleted`=0';
}
$query = "select * from `domains` where `memid`='".$userid."' and `hash`=''".$filter." order by `created`";
return mysql_query($query);