rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit dc92a51b7625904c4e084e417173a387db6af3ab
parent dfbddab4e82bdd2fe478e994e3149eb06dd66515
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 12:21:19 +0100

try to fix if in posts.php

Diffstat:
Mcore/backend/blog/posts.php | 2+-
Mthemes/jumbotron/index.php | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -13,7 +13,7 @@ printf("Verbindung fehlgeschlagen: %s\n", mysqli_connect_error()); exit(); } - if (empty($_GET["post_id"])){ + if ($empty){ $post_id = "bug?"; $post_title = "bug?"; $post_text = "bug?"; diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -6,6 +6,7 @@ ########################## # include required files # ########################## + $empty = empty($_GET["id"]); include('../../core/backend/blog/posts.php'); include('../../core/config/variables.config.php') ?>