defensio/defensio-php — pull request #2 by oneofthosed3afmutes (2012-06-18 20:15:33+00:00)
Title: Sending a pull request.

Hello,

Was receiving the following error while using the PHP client:

Notice: Undefined index: query in /var/www/sites/www.get2know.me/library/defensio-php/lib/DefensioRestClient.php on line 133

Did a quick var_dump() of the $url variable in question. The if() statement assumes that $url['query'] exists but this is not always the case. I have updated the code for a cleaner way to handle this array key issue.