commit eb8dfb74f8c4eeefda6e479543ed5d3c12c053b4
parent c8da2e13a0270d19d067afee826728b15b7f5fb4
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 20 Mar 2015 17:30:36 +0100
another bug found
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -243,8 +243,7 @@ class DbHandler {
$id = $this->conn->prepare("SELECT COUNT(*) FROM posts");
if ($id->execute()) {
$post_id_clean_array = $id->get_result()->fetch_assoc();
- $post_id_clean = $post_id_clean_array["id"];
- var_dump($post_id_clean_array);
+ $post_id_clean = $post_id_clean_array["COUNT(*)"];
}
if ($post_id == NULL) {
$x = 1;