rpicms

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

commit c395a70c9349a484002e9377092600a4dd57720c
parent f9761f2d2777d0f77df0b1eec1cadca6236a575b
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 13 Dec 2014 12:33:07 +0100

fixed missing variable in posts.php

Diffstat:
Mcore/backend/blog/posts.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -62,7 +62,7 @@ function read_category(){ - global $id, $connection, $read, $post_id_clean; + global $category, $connection, $read, $post_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory, $post_text_short; if ($resultat = $connection->query("SELECT * FROM posts WHERE category LIKE '$category' ")) { //echo 'SELECT * FROM posts WHERE id LIKE '.$id; @@ -79,7 +79,7 @@ } $resultat->close(); } else { - global $id, $connection, $read, $post_id_clean; + global $category, $connection, $read, $post_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory; global $error; $error = "1";