commit e3a1512c3817f03da19078ec856626be136c2f7f
parent 3da821c44b50749cb5f9f67fb795220d0c09c400
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 20 Mar 2015 16:58:45 +0100
new try
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -241,11 +241,10 @@ class DbHandler {
*/
public function getPosts($post_id) {
$id = $this->conn->prepare("SELECT id FROM posts");
- var_dump($id);
- /*while ($id->execute()) {
+ if ($id->execute()) {
$post_id_clean_array = $id->get_result()->fetch_assoc();
$post_id_clean = $post_id_clean_array["id"];
- }*/
+ }
if ($post_id == NULL) {
$x = 1;
while ($x < $post_id_clean+1){