commit 5a17061a21163f260c94e605ecd362f38c35aba5
parent cdfd8484e224c83c732cab1d7ef5b2b71f79a35a
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 19 Mar 2015 21:29:18 +0100
fix variable
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 ($stmt->execute()) {
+ if ($id->execute()) {
$post_id_clean = $id->get_result()->fetch_assoc();
}
if ($post_id == NULL) {