commit 92ed4c912ce0bac5c36a8dcc001a3d75766dc707
parent 1c5fcb28739e5292cd1f5f37ab71c36350dc8093
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 18 Mar 2015 21:16:38 +0100
variable bug
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -240,6 +240,7 @@ class DbHandler {
* @param String $task_id id of the task
*/
public function getPosts($post_id) {
+ echo $post_id;
if ($post_id = NULL){
echo "id=null";
return $all;
diff --git a/core/api/v1/api.php b/core/api/v1/api.php
@@ -151,8 +151,6 @@ $app->get('/posts/:id', function($post_id) {
$response = array();
$db = new DbHandler();
- echo "$post_id";
-
// fetch task
$result = $db->getPosts($post_id);
var_dump($result);