rpicms

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

commit 1402595be82953197b307432878f9abcf5ff1d82
parent de8214bbd1bacfbbb39d3c9687f131744b10b353
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 20 Mar 2015 17:19:13 +0100

why won't this work?

Diffstat:
Mcore/api/v1/DbHandler.class.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php @@ -241,7 +241,7 @@ class DbHandler { */ public function getPosts($post_id) { $id = $this->conn->prepare("SELECT id FROM posts"); - while ($id->execute()) { + if ($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();