commit 085877a13e5b96d69d279d4294de138d94494166 parent cd889b32ba1f4a967aa1e9848d69a306c6576a5b Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 23 Nov 2014 11:50:55 +0100 filled empty variables if no post id in url Diffstat:
| M | core/backend/blog/posts.php | | | 6 | ++++++ |
| M | themes/jumbotron/index.php | | | 6 | +----- |
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -36,6 +36,12 @@ # //If no data in Database give error # echo "Es konnten keine Daten aus der Datenbank ausgelesen werden"; #} + $post_id = "bug?"; + $post_title = "bug?"; + $post_text = "bug?"; + $post_author = "bug?"; + $post_date = "bug?"; + $post_categrory = "bug?"; echo "<b>bug?</b>"; }else{ //Check if Data in it diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -77,11 +77,7 @@ <div class="container"> <h1> <?php - $x = 1; - while ($x < $post_id_clean){ - echo "{$post_id[1]}"; - #echo "<a href='index.php?id=".$post_id[$x]."' rel='bookmark'> $post_title </a>"; - $x = $x + 1; + echo "<a href='index.php?id=".$post_id."' rel='bookmark'> $post_title </a>"; } ?> </h1>