summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-06-25 22:51:30 +0200
committerBenny Baumann <BenBE@geshi.org>2013-06-25 22:51:30 +0200
commit64eabd527666a70b66f28bfb55c831c70e85f8a1 (patch)
tree7d9abae2ecc9728c889e07e57e6cfcc6f5185f13
parentff23575eca822ff2ea6c3089b41a11be6f05a2ab (diff)
downloadcacert-devel-64eabd527666a70b66f28bfb55c831c70e85f8a1.tar.gz
cacert-devel-64eabd527666a70b66f28bfb55c831c70e85f8a1.tar.xz
cacert-devel-64eabd527666a70b66f28bfb55c831c70e85f8a1.zip
bug 1176: Ensure that the notary table to show was given before determining which one
-rw-r--r--pages/account/43.php30
1 files changed, 16 insertions, 14 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index 8e6dc13..ca11f03 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -888,17 +888,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;
+ }
+}