Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #110 from philsturgeon/php55
Browse files Browse the repository at this point in the history
Dont convert CURLFile: Take 2
  • Loading branch information
gfosco committed Nov 1, 2013
2 parents 07deeed + d236be6 commit 41e6c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -2,4 +2,5 @@ language: php
php:
- 5.3
- 5.4
- 5.5
script: phpunit --stderr --bootstrap tests/bootstrap.php tests/tests.php
2 changes: 1 addition & 1 deletion src/base_facebook.php
Expand Up @@ -901,7 +901,7 @@ protected function _oauthRequest($url, $params) {

// json_encode all params values that are not strings
foreach ($params as $key => $value) {
if (!is_string($value)) {
if (!is_string($value) && !($value instanceof CURLFile)) {
$params[$key] = json_encode($value);
}
}
Expand Down

0 comments on commit 41e6c4f

Please sign in to comment.