summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-11 22:28:46 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-11 22:28:46 +0200
commitb7fe66a40157eea02d3f22ccd60487ce1c761ed5 (patch)
treef5a2789d2f988ddc11985ddae99d4afbe1c4da45
parentc4ce71d92db447f78c959fb6915f810145cb4855 (diff)
downloadcacert-devel-b7fe66a40157eea02d3f22ccd60487ce1c761ed5.tar.gz
cacert-devel-b7fe66a40157eea02d3f22ccd60487ce1c761ed5.tar.xz
cacert-devel-b7fe66a40157eea02d3f22ccd60487ce1c761ed5.zip
bug 1138: Always show email address table
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--pages/account/59.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/pages/account/59.php b/pages/account/59.php
index a0933ba..e63f494 100644
--- a/pages/account/59.php
+++ b/pages/account/59.php
@@ -146,21 +146,29 @@ if ($userid != $_SESSION['profile']['id']) {
// Email addresses
$dres = get_email_addresses($userid,'',1);
-if(mysql_num_rows($dres) > 0) {
?>
- <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
- <tr>
- <td colspan="3" class="title"><?=_('Email addresses')?></td>
- </tr>
+<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
+ <tr>
+ <td colspan="3" class="title"><?=_('Email addresses')?></td>
+ </tr>
<?
+if (mysql_num_rows($dres) > 0) {
output_log_email_header();
while($drow = mysql_fetch_assoc($dres))
{
output_log_email($drow,$email);
- } ?>
+ }
+} else {
+ ?>
+ <tr>
+ <td colspan="3" ><?=_('no entry avialable')?></td>
+ </tr>
+ <?
+}
+?>
</table>
<br/>
-<?}
+<?
$dres = get_domains($userid,'',1);
?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">