commit eec100513e769b162cddc345202974c572d93fbe
parent 80d45a4f57053991029b1b214a62c48f8617de0c
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Dec 2014 12:57:00 +0100
make $id global
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -69,7 +69,7 @@
function read_category(){
- global $category, $connection, $read, $category_id_clean;
+ global $id, $category, $connection, $read, $category_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 category LIKE '$category' AND LIKE '$id'")) {
//echo 'SELECT * FROM posts WHERE id LIKE '.$id;
@@ -86,7 +86,7 @@
}
$resultat->close();
} else {
- global $category, $connection, $read, $category_id_clean;
+ global $id, $category, $connection, $read, $category_id_clean;
global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category;
global $error;
$error = "1";