commit a3f4706ab52e33b6bba9db692601bd30466ae41a
parent 25815a178c815a320a8e9f78d4952790e9cf22c3
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 18 Mar 2015 20:47:34 +0100
new try
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -243,7 +243,7 @@ class DbHandler {
if ($post_id = NULL){
return $all;
}else{
- $stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id LIKE '$post_id'");
+ $stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id LIKE $post_id");
$stmt->bind_param("s", $post_id);
if ($stmt->execute()) {
$post = $stmt->get_result()->fetch_assoc();