vclayton / unpecl-oauth

Native PHP drop-in replacement for the PECL OAuth extension
MIT License
4 stars 1 forks source link

Undefined $curlHeaders #9

Closed forrestmid closed 8 years ago

forrestmid commented 8 years ago

With the most recent update you made every $curlHeaders array within an if statement. If $curlHeaders doesn't exist then $curlOptions will throw an error when you try to assign it. I'd recommend making a default array $curlHeaders = []; before the function is run.

vclayton commented 8 years ago

Thanks, good catch. I've patched it and tagged release v0.5.4.