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

This commit is contained in:
FrancescoUK committed 2016-05-27 18:40:16 +01:00
1 parent ce3e96ef5b
commit 6e14dfb6d5
17 files changed
+60 -52

No files matched your search

+3 -1
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')));
}