From 430024ca171733eaf2d5992c38bbeb6b56c4f0e5 Mon Sep 17 00:00:00 2001 From: Philipp Dunkel Date: Thu, 5 Aug 2010 10:41:03 +0000 Subject: [PATCH] http://bugs.cacert.org/view.php?id=326 --- pages/account/49.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/account/49.php b/pages/account/49.php index 8b22399..688b9a4 100644 --- a/pages/account/49.php +++ b/pages/account/49.php @@ -24,7 +24,7 @@ $domainsearch = "%$domain%"; if(preg_match("/^\d+$/",$domain)) $domainsearch = ""; - $query = "select `users`.`id` as `id`, `domains`.`domain` as `domain` from `users`,`domains` + $query = "select `users`.`id` as `id`, `domains`.`domain` as `domain`, `domains`.`id`as `domid` from `users`,`domains` where `users`.`id`=`domains`.`memid` and (`domains`.`domain` like '$domainsearch' or `domains`.`id`='$domain') and `domains`.`deleted`=0 and `users`.`deleted`=0 and @@ -41,15 +41,16 @@ { ?> : + = 100) { ?> - + - +

@@ -60,7 +61,7 @@ printf(_("No personal domains found matching %s"), sanitizeHTML($domain)); } - $query = "select `orgid`,`domain` from `orgdomains` where `domain` like '$domainsearch' or `id`='$domain' limit 100"; + $query = "select `orgid`,`domain`,`id` from `orgdomains` where `domain` like '$domainsearch' or `id`='$domain' limit 100"; $res = mysql_query($query); if(mysql_num_rows($res) >= 1) { ?> @@ -72,15 +73,16 @@ { ?> + = 100) { ?> - + - +
: