commit 71588fbe0cdef5f5d3aefc1b1fd8bddd7200e27f
parent 77b22a5ff732a4aa15fc3c445cd524cfc7439d8a
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 16 May 2015 14:20:43 +0200
new try
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -31,6 +31,7 @@ if ($root_3[1] == 'core') {
#var_dump($daten);
}
#$resultat->close();
+ $connection->close();
}
if ($resultat = $connection->query("SELECT id FROM posts WHERE category LIKE '$category'")) {
while($daten = $resultat->fetch_object() ){
@@ -38,12 +39,14 @@ if ($root_3[1] == 'core') {
#var_dump($daten);
}
#$resultat->close();
+ $connection->close();
}
if ($resultat = $connection->query("SELECT id FROM posts WHERE author LIKE '$author'")) {
while($daten = $resultat->fetch_object() ){
$author_id_clean = $daten->id;
#var_dump($daten);
}
+ $connection->close();
}
next_id_only();
next_id_category();
@@ -88,6 +91,7 @@ if ($root_3[1] == 'core') {
$post_category = "Database error!";
$post_text_short = "Database error!";
}
+ $connection->close();
}
@@ -122,6 +126,7 @@ if ($root_3[1] == 'core') {
$post_category = "Database error!";
$post_text_short = "Database error!";
}
+ $connection->close();
}
function read_author(){
@@ -155,6 +160,7 @@ function read_author(){
$post_category = "Database error!";
$post_text_short = "Database error!";
}
+ $connection->close();
}