diff options
author | Felix Dörre <felix@dogcraft.de> | 2014-12-02 23:31:22 +0100 |
---|---|---|
committer | Felix Dörre <felix@dogcraft.de> | 2014-12-02 23:31:22 +0100 |
commit | 5448d0f8f7e59db6b1e2cd3abe1543a0d9a16eec (patch) | |
tree | 611ef21e6da07a0b4f47a779b8ca5b98dcb8d4f8 | |
parent | 5ebb17ef9ebe7addc158e92b49c2ae9b5f2844dd (diff) | |
download | cacert-devel-5448d0f8f7e59db6b1e2cd3abe1543a0d9a16eec.tar.gz cacert-devel-5448d0f8f7e59db6b1e2cd3abe1543a0d9a16eec.tar.xz cacert-devel-5448d0f8f7e59db6b1e2cd3abe1543a0d9a16eec.zip |
bug-1282: (related) fix the redirection-feature for domain search
-rw-r--r-- | pages/account/49.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/account/49.php b/pages/account/49.php index 9802917..3d2fd09 100644 --- a/pages/account/49.php +++ b/pages/account/49.php @@ -39,7 +39,7 @@ `users`.`verified`=1 group by `users`.`id` limit 100"; $res = mysql_query($query); - if(mysql_num_rows($res) >= 1) { ?> + if(mysql_num_rows($res) > 1) { ?> <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <tr> <td colspan="5" class="title"><?=_("Select Specific User Account Details")?></td> @@ -64,7 +64,7 @@ </table><br><br> <? } elseif(mysql_num_rows($res) == 1) { $row = mysql_fetch_assoc($res); - $_GET['userid'] = intval($row['id']); + $userid = intval($row['id']); } else { ?><table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <tr> @@ -74,7 +74,7 @@ } $query = "select `orgid`,`domain`,`id` from `orgdomains` where `domain` like '$domainsearch' or `id`='$domainid' limit 100"; $res = mysql_query($query); - if(mysql_num_rows($res) >= 1) { ?> + if(mysql_num_rows($res) > 1) { ?> <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <tr> <td colspan="5" class="title"><?=_("Select Specific Organisation Account Details")?></td> @@ -99,7 +99,7 @@ </table><br><br> <? } elseif(mysql_num_rows($res) == 1) { $row = mysql_fetch_assoc($res); - $_GET['userid'] = intval($row['id']); + $userid = intval($row['id']); } else { ?><table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <tr> @@ -111,7 +111,7 @@ if($userid > 0) { - header("location: account.php?id=43&userid=".intval($_GET['userid'])); + header("location: account.php?id=43&userid=".intval($userid)); exit; } ?> |