From ff764f253569150b31b18ce7d0bf47d5e61f146c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 10 Dec 2012 15:53:14 +0000 Subject: [PATCH] CAT_status was missing database info whoops --- application/controllers/api.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/application/controllers/api.php b/application/controllers/api.php index dacb7a5a..d135353e 100644 --- a/application/controllers/api.php +++ b/application/controllers/api.php @@ -322,7 +322,7 @@ class API extends CI_Controller { $obj = json_decode(file_get_contents("php://input"), true); // Store Result to Database - $this->cat->cat_status($obj); + $this->cat->update($obj); // Return Message @@ -339,6 +339,14 @@ class API extends CI_Controller { // Decode JSON and store $obj = json_decode(file_get_contents("php://input"), true); + + // Store Result to Database + $this->cat->cat_status($obj); + + // Return Message + $arr = array('status' => 'success'); + + echo json_encode($arr); } }