Skip to content

Commit ddf9c14

Browse files
author
Phil Sturgeon
committed
Merge pull request chriskacerguis#105 from Givemeup/master
Declares an instance of stdClass
2 parents 56346ad + 6c9b492 commit ddf9c14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

application/libraries/REST_Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function __construct()
4545
$this->load->config('rest');
4646

4747
// How is this request being made? POST, DELETE, GET, PUT?
48+
$this->request = new stdClass();
4849
$this->request->method = $this->_detect_method();
4950

5051
// Set up our GET variables
@@ -110,6 +111,7 @@ public function __construct()
110111
$this->_args = array_merge($this->_get_args, $this->_put_args, $this->_post_args, $this->_delete_args);
111112

112113
// Which format should the data be returned in?
114+
$this->response = new stdClass();
113115
$this->response->format = $this->_detect_output_format();
114116

115117
// Which language should the data be returned in?

0 commit comments

Comments
 (0)