dirkgroenen / pinterest-api-php

A PHP wrapper for the official Pinterest API. :pushpin:
https://developers.pinterest.com/docs/getting-started/introduction/
Apache License 2.0
173 stars 76 forks source link

Notice: Undefined variable: CURLOPT_MAXREDIRS #35

Closed compworkmail closed 8 years ago

compworkmail commented 8 years ago

Hello. Thanks for nice lib! I have noticed the error in a code: Notice: Undefined variable: CURLOPT_MAXREDIRS in .../Pinterest/Utils/CurlBuilder.php on line 194. You need to change if ($CURLOPT_MAXREDIRS > 0) {
to if (CURLOPT_MAXREDIRS > 0) { (just remove $ sign before CURLOPT). Thanks!

dirkgroenen commented 8 years ago

This was already fixed in 0.2.8 https://github.com/dirkgroenen/Pinterest-API-PHP/commit/35f790253f6430387a485c389c69e42688979a86

compworkmail commented 8 years ago

Nice, thanks for your great work!