rpicms

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

commit 8d235a621ff93b83759fa8adadeec6e450285b25
parent eb42fa567320953fad8f071c3b8467a44c0f9705
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 13 Dec 2014 13:21:19 +0100

fixed wrong variable in read function

Diffstat:
Mcore/backend/blog/posts.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -114,7 +114,7 @@ function read_author(){ global $id, $author, $connection, $read, $author_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category, $post_text_short; - if ($resultat = $connection->query("SELECT * FROM posts WHERE author LIKE '$category' AND id LIKE '$id'")) { + if ($resultat = $connection->query("SELECT * FROM posts WHERE author LIKE '$author' AND id LIKE '$id'")) { //echo 'SELECT * FROM posts WHERE id LIKE '.$id; //Put database data in variables while($daten = $resultat->fetch_object() ){