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