bug 1138: Properly display domain table
authorMichael Tänzer <neo@nhng.de>
Fri, 11 Apr 2014 20:32:06 +0000 (22:32 +0200)
committerMichael Tänzer <neo@nhng.de>
Fri, 11 Apr 2014 20:32:06 +0000 (22:32 +0200)
- Wrong call to get_domains() => deleted domains weren't included
- <td> needs to be wrapped in a <tr>

Signed-off-by: Michael Tänzer <neo@nhng.de>
pages/account/59.php

index e63f494..3b2060e 100644 (file)
@@ -169,7 +169,9 @@ if (mysql_num_rows($dres) > 0) {
 </table>
 <br/>
 <?
-$dres = get_domains($userid,'',1);
+
+// Domains
+$dres = get_domains($userid, 1);
 ?>
 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
     <tr>
@@ -182,9 +184,14 @@ if(mysql_num_rows($dres) > 0) {
     {
           output_log_domains($drow,$email);
     }
-}ELSE{?>
-          <td colspan="3" ><?=_('no entry avialable')?></td>
-<?}?>
+} else {
+    ?>
+    <tr>
+        <td colspan="3" ><?=_('no entry avialable')?></td>
+    </tr>
+    <?
+}
+?>
 </table>
 <br/>