Skip to content

Commit

Permalink
Adding an isset check before returning from EpiCurl. This keeps a not…
Browse files Browse the repository at this point in the history
…ice from going into the error log.

Closes jmathaigh-44
  • Loading branch information
jmathai committed Feb 11, 2010
1 parent 3d27e5a commit 01a4c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EpiCurl.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function __construct($key)
function __get($name)
{
$responses = $this->epiCurl->getResult($this->key);
return $responses[$name];
return isset($responses[$name]) ? $responses[$name] : null;
}

function __isset($name)
Expand Down

0 comments on commit 01a4c0d

Please sign in to comment.