bug 1138: Always provide a back link
authorMichael Tänzer <neo@nhng.de>
Fri, 11 Apr 2014 21:51:35 +0000 (23:51 +0200)
committerMichael Tänzer <neo@nhng.de>
Fri, 11 Apr 2014 21:51:35 +0000 (23:51 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
pages/account/59.php

index 7026b5a..5a327a9 100644 (file)
@@ -370,15 +370,11 @@ if (mysql_num_rows($dres) > 0) {
     </tr>
     <?
 }
-    if ($support==1) {
-        ?>
-        <tr>
-            <td colspan="<?=$colspan?>" >
-                <a href="account.php?id=43&amp;userid=<?= $userid ?>"><?= _('Back to previous page.')?></a>
-            </td>
-        </tr>
-        <?
-    }
-
 ?>
+<tr>
+    <td colspan="<?=$colspan?>" >
+        <a href="account.php?id=<?=$oldid?intval($oldid):($support?43:13)?>&amp;userid=<?=$userid?>"><?= _('Back to previous page.')?></a>
+    </td>
+</tr>
+
 </table>