rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 103ddee986f421710b902edfd3b74610d38a70c8
parent a3f4706ab52e33b6bba9db692601bd30466ae41a
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 18 Mar 2015 20:48:49 +0100

why?

Diffstat:
Mcore/api/v1/DbHandler.class.php | 2+-
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 = $post_id"); $stmt->bind_param("s", $post_id); if ($stmt->execute()) { $post = $stmt->get_result()->fetch_assoc();