rpicms

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

commit 68ce18c947232ba81bdcb5028ad243713b507a4a
parent 71588fbe0cdef5f5d3aefc1b1fd8bddd7200e27f
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 14:21:47 +0200

now?

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

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -31,7 +31,6 @@ 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() ){ @@ -39,14 +38,12 @@ 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(); @@ -76,7 +73,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; @@ -91,7 +87,6 @@ if ($root_3[1] == 'core') { $post_category = "Database error!"; $post_text_short = "Database error!"; } - $connection->close(); } @@ -111,7 +106,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; @@ -126,7 +120,6 @@ if ($root_3[1] == 'core') { $post_category = "Database error!"; $post_text_short = "Database error!"; } - $connection->close(); } function read_author(){ @@ -145,7 +138,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; @@ -160,7 +152,6 @@ function read_author(){ $post_category = "Database error!"; $post_text_short = "Database error!"; } - $connection->close(); }