Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixed php error caused by not setting $output in the case of $this->respo #66

Merged
merged 1 commit into from

2 participants

Greg Phil Sturgeon
Greg

fixed php error caused by not setting $output in the case of $this->response(array())

Phil Sturgeon philsturgeon merged commit ffd247d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 7, 2011
  1. Greg
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  application/libraries/REST_Controller.php
3  application/libraries/REST_Controller.php
View
@@ -230,6 +230,9 @@ public function response($data = array(), $http_code = null)
if (empty($data) && $http_code === null)
{
$http_code = 404;
+
+ //create the output variable here in the case of $this->response(array());
+ $output = $data;
}
// Otherwise (if no data but 200 provided) or some data, carry on camping!
Something went wrong with that request. Please try again.