commit d501acb9495d20625d68c431072b1e01c5346818
parent 8e19eeccc5532da071085c7438c3f9c058c204e6
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 20 Mar 2015 17:09:58 +0100
test some loop types
Diffstat:
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");
- if ($id->execute()) {
+ for ($id->execute()) {
$post_id_clean_array = $id->get_result()->fetch_assoc();
$post_id_clean = $post_id_clean_array["id"];
}