commit 947a9887f24402898f97c3faebcb54a0e9d075e4
parent 2b1d8acc03ca10eddf9f6399141fa44f6a73c421
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 16 May 2015 15:00:11 +0200
new try
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -69,7 +69,6 @@ if ($root_3[1] == 'core') {
$post_category = $daten->category;
$post_text_short = shortText($post_text,300);
}
- $resultat->close();
} else {
global $id, $connection, $read, $post_id_clean;
global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category;
@@ -84,6 +83,7 @@ if ($root_3[1] == 'core') {
$post_category = "Database error!";
$post_text_short = "Database error!";
}
+
}
@@ -101,7 +101,6 @@ if ($root_3[1] == 'core') {
$post_category = $daten->category;
$post_text_short = shortText($post_text,300);
}
- $resultat->close();
} else {
global $id, $category, $connection, $read, $category_id_clean;
global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category;
@@ -116,6 +115,7 @@ if ($root_3[1] == 'core') {
$post_category = "Database error!";
$post_text_short = "Database error!";
}
+ $resultat->close();
}
function read_author(){
@@ -132,7 +132,6 @@ function read_author(){
$post_category = $daten->category;
$post_text_short = shortText($post_text,300);
}
- $resultat->close();
} else {
global $id, $author, $connection, $read, $author_id_clean;
global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category;
@@ -147,6 +146,7 @@ function read_author(){
$post_category = "Database error!";
$post_text_short = "Database error!";
}
+ $resultat->close();
}