Skip to content

Commit

Permalink
PHP 7.0 Curlfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AraneaDev committed Apr 26, 2016
1 parent d4bed57 commit 716552a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Podio.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static function request($method, $url, $attributes = array(), $options =
curl_setopt(self::$ch, CURLOPT_CUSTOMREQUEST, self::POST);
if (!empty($options['upload'])) {
curl_setopt(self::$ch, CURLOPT_POST, TRUE);
if(defined('CURLOPT_SAFE_UPLOAD')) {
if(!class_exists("\CURLFile") && defined('CURLOPT_SAFE_UPLOAD')) {
curl_setopt(self::$ch, CURLOPT_SAFE_UPLOAD, FALSE);
}
curl_setopt(self::$ch, CURLOPT_POSTFIELDS, $attributes);
Expand Down

0 comments on commit 716552a

Please sign in to comment.