Sanity checked SQL insert and update, minor fixes (#598)

This commit is contained in:
FrancescoUK
2016-05-27 18:39:00 +01:00
parent ce3e96ef5b
commit 6e14dfb6d5
17 changed files with 60 additions and 52 deletions

View File

@@ -161,7 +161,9 @@ class Config extends Secure_area
$this->Stock_location->delete($location_id);
}
$success = $this->db->trans_complete();
$this->db->trans_complete();
$success = $this->db->trans_status();
echo json_encode(array('success'=>$success, 'message'=>$this->lang->line('config_saved_' . ($success ? '' : 'un') . 'successfully')));
}