rpicms

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

commit 952064a2e7e7b54d3ea19135addf68eac0cdc164
parent d501acb9495d20625d68c431072b1e01c5346818
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 20 Mar 2015 17:10:38 +0100

new try

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"); - for ($id->execute()) { + while ($id->execute()) { $post_id_clean_array = $id->get_result()->fetch_assoc(); $post_id_clean = $post_id_clean_array["id"]; }