commit b352a5ef64ea800385b8b976c7c16c46de11d517 parent b8404e16fe49f8cf7bf9100c5808606649d935dc Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 23 Nov 2014 12:17:07 +0100 maybe maybe Diffstat:
| M | themes/jumbotron/index.php | | | 14 | +++++++++----- |
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -77,11 +77,15 @@ <div class="container"> <h1> <?php - $x = 1; - for (!empty($post_title); $post_title = "bug?"){ - echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>"; - $x = $x+1; - } + $x = 1; + if (!$post_title == "bug?"){ + while (!empty($post_title); $post_title = "bug?"){ + echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>"; + $x = $x+1; + } + }else{ + echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>"; + } ?> </h1> <div>