commit a498e444ee3bf9d2055b7b3d094dc5bb14d61904 parent 7c9703f1185dbd97549b2fb95235ad9de7611710 Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 20 Mar 2015 17:34:03 +0100 and another bug fixed Diffstat:
| M | core/api/v1/DbHandler.class.php | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php @@ -240,9 +240,9 @@ class DbHandler { * @param String $task_id id of the task */ public function getPosts($post_id) { - $id = $this->conn->prepare("SELECT COUNT(*) FROM posts"); - if ($id->execute()) { - $post_id_clean_array = $id->get_result()->fetch_assoc(); + $id_sql = $this->conn->prepare("SELECT COUNT(*) FROM posts"); + if ($id_sql->execute()) { + $post_id_clean_array = $id_sql->get_result()->fetch_assoc(); $post_id_clean = $post_id_clean_array["COUNT(*)"]; } if ($post_id == NULL) {