Skip to content
This repository was archived by the owner on May 4, 2018. It is now read-only.

Commit a2869f9

Browse files
committed
v1.0
1 parent e4468d7 commit a2869f9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/arrest-mysql.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Author: Gilbert Pellegrom
1212
* Website: http://dev7studios.com
1313
* Date: Jan 2013
14+
* Version 1.0
1415
*/
1516
require('lib/db.php');
1617

@@ -193,7 +194,7 @@ private function create()
193194
if($data = $this->_post()){
194195
$this->db->insert($table, $data)
195196
->query();
196-
$success = array('error' => array(
197+
$success = array('success' => array(
197198
'message' => 'Success',
198199
'code' => 200
199200
));
@@ -288,7 +289,7 @@ private function update()
288289
->set($this->_put())
289290
->where($index, $id)
290291
->query();
291-
$success = array('error' => array(
292+
$success = array('success' => array(
292293
'message' => 'Success',
293294
'code' => 200
294295
));
@@ -330,7 +331,7 @@ private function delete()
330331
$this->db->delete($table)
331332
->where($index, $id)
332333
->query();
333-
$success = array('error' => array(
334+
$success = array('success' => array(
334335
'message' => 'Success',
335336
'code' => 200
336337
));

0 commit comments

Comments
 (0)