rpicms

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

commit de8214bbd1bacfbbb39d3c9687f131744b10b353
parent 11c5be11325a4d9528c18cb36065d8bd3fdb4cd7
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 20 Mar 2015 17:16:10 +0100

next try

Diffstat:
Mcore/api/v1/DbHandler.class.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php @@ -241,9 +241,10 @@ class DbHandler { */ public function getPosts($post_id) { $id = $this->conn->prepare("SELECT id FROM posts"); - if ($id->execute()) { - $post_id_clean_array = $id->get_result()->fetch_object(); - $post_id_clean = $post_id_clean_array["id"]; + while ($id->execute()) { + #$post_id_clean_array = $id->get_result()->fetch_object(); + #$post_id_clean = $post_id_clean_array["id"]; + $post_id_clean = $id->get_result()->fetch_object(); } if ($post_id == NULL) { $x = 1;