rpicms

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

commit e606cf09f3cbed380549c0b74307a10177184d0e
parent 68ce18c947232ba81bdcb5028ad243713b507a4a
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 14:24:49 +0200

now?

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

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -30,20 +30,24 @@ if ($root_3[1] == 'core') { $post_id_clean = $daten->id; #var_dump($daten); } - #$resultat->close(); + $resultat->close(); + unset($resultat); } if ($resultat = $connection->query("SELECT id FROM posts WHERE category LIKE '$category'")) { while($daten = $resultat->fetch_object() ){ $category_id_clean = $daten->id; #var_dump($daten); } - #$resultat->close(); + $resultat->close(); + unset($resultat); } 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); } + $resultat->close(); + unset($resultat); } next_id_only(); next_id_category(); @@ -73,6 +77,8 @@ if ($root_3[1] == 'core') { $post_category = $daten->category; $post_text_short = shortText($post_text,300); } + $resultat->close(); + unset($resultat); } else { global $id, $connection, $read, $post_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category; @@ -106,6 +112,8 @@ if ($root_3[1] == 'core') { $post_category = $daten->category; $post_text_short = shortText($post_text,300); } + $resultat->close(); + unset($resultat); } else { global $id, $category, $connection, $read, $category_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category; @@ -138,6 +146,8 @@ function read_author(){ $post_category = $daten->category; $post_text_short = shortText($post_text,300); } + $resultat->close(); + unset($resultat); } else { global $id, $author, $connection, $read, $author_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category;