summaryrefslogtreecommitdiff
path: root/pages/wot
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-10-23 02:16:00 +0200
committerMichael Tänzer <neo@nhng.de>2011-10-23 02:16:00 +0200
commit5c12fb422ce9a446f9ccef4eba5070d9a33739a9 (patch)
tree65e659520a7b6915991194e8260b246c923aadb6 /pages/wot
parentc35b66293e32058491ee35aa2d7de3e1a8df65a2 (diff)
downloadcacert-devel-5c12fb422ce9a446f9ccef4eba5070d9a33739a9.tar.gz
cacert-devel-5c12fb422ce9a446f9ccef4eba5070d9a33739a9.tar.xz
cacert-devel-5c12fb422ce9a446f9ccef4eba5070d9a33739a9.zip
bug 894: A few cleanups and bug fixes.
- "A reminder notice has been sent." should be only shown once at the same page - "You are not an Assurer" was misleading, only somehow the other user was not recorded in the session (e.g. URL manipulation/hotlinking) - Reuse the data fetched moments ago instead of doing another SQL query - Compare instead of assignment - Make "Go Back" translatable Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/wot')
-rw-r--r--pages/wot/5.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/pages/wot/5.php b/pages/wot/5.php
index 6c53d00..f717870 100644
--- a/pages/wot/5.php
+++ b/pages/wot/5.php
@@ -20,16 +20,10 @@
<?
if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "")
{
- if(array_key_exists('reminderset',$_SESSION['_config']) && $_SESSION['_config']['remindersent'] == 1)
- {
- ?><font color="orange" size="+1"><?
- }
- else
- {
- ?><font color="orange" size="+1"><?=_("ERROR")?>: <?
- }
- echo $_SESSION['_config']['error']."</font>";
- unset($_SESSION['_config']['error']);
+ ?><font color="orange" size="+1">
+ <? echo _("ERROR").": ".$_SESSION['_config']['error'] ?>
+ </font>
+ <?unset($_SESSION['_config']['error']);
}
?>
<? if(array_key_exists('noemailfound',$_SESSION['_config']) && $_SESSION['_config']['noemailfound'] == 1) { ?>