bug 1176: Ensure that the notary table to show was given before determining which one
authorBenny Baumann <BenBE@geshi.org>
Tue, 25 Jun 2013 20:51:30 +0000 (22:51 +0200)
committerBenny Baumann <BenBE@geshi.org>
Tue, 25 Jun 2013 20:51:30 +0000 (22:51 +0200)
pages/account/43.php

index 8e6dc13..ca11f03 100644 (file)
@@ -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;
+    }
+}