commit b59f35354269cc9f13bb3f4a12ad9b9fe94f9d3c
parent 64e4516b68b76b51be3a006c2900e5ddac5ad68f
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 18 Mar 2015 20:57:31 +0100
debug :D
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -241,8 +241,10 @@ class DbHandler {
*/
public function getPosts($post_id) {
if ($post_id = NULL){
+ echo "id=null";
return $all;
}else{
+ echo "id!=null";
$stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id = ?");
$stmt->bind_param("i", $post_id);
if ($stmt->execute()) {