summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-07-12 21:16:37 +0200
committerBenny Baumann <BenBE@geshi.org>2013-07-12 21:16:37 +0200
commit12ab18c8898d3bd5a62b0aab34842b8463dd9c98 (patch)
tree8dd6a7841e90864c9f50e08f17ca077689ee60af /pages
parent9a81215af81d5c204b98e4771d116cae66c95bb6 (diff)
parent9963c51f118a5d11bf245dca15ab2cd716b58633 (diff)
downloadcacert-devel-12ab18c8898d3bd5a62b0aab34842b8463dd9c98.tar.gz
cacert-devel-12ab18c8898d3bd5a62b0aab34842b8463dd9c98.tar.xz
cacert-devel-12ab18c8898d3bd5a62b0aab34842b8463dd9c98.zip
Merge branch 'bug-1176' into release
Diffstat (limited to 'pages')
-rw-r--r--pages/account/43.php32
1 files changed, 18 insertions, 14 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index d34362d..234e01a 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -35,6 +35,8 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
if(intval(array_key_exists('userid',$_REQUEST)?$_REQUEST['userid']:0) <= 0)
{
+ $_REQUEST['userid'] = 0;
+
$emailsearch = $email = mysql_escape_string(stripslashes($_REQUEST['email']));
//Disabled to speed up the queries
@@ -890,17 +892,19 @@ function showassuredby()
<br><br>
<? } }
-switch ($_GET['shownotary'])
- {
- case 'assuredto': showassuredto();
- break;
- case 'assuredby': showassuredby();
- break;
- case 'assuredto15': output_received_assurances(intval($_GET['userid']),1);
- break;
- case 'assuredby15': output_given_assurances(intval($_GET['userid']),1);
- break;
- }
-
-
-?>
+if(isset($_GET['shownotary'])) {
+ switch($_GET['shownotary']) {
+ case 'assuredto':
+ showassuredto();
+ break;
+ case 'assuredby':
+ showassuredby();
+ break;
+ case 'assuredto15':
+ output_received_assurances(intval($_GET['userid']),1);
+ break;
+ case 'assuredby15':
+ output_given_assurances(intval($_GET['userid']),1);
+ break;
+ }
+}