|
@@ -819,7 +819,7 @@ discard block |
|
|
block discarded – undo |
|
819
|
819
|
throw new DropboxClientUnableToWriteToTempException("Cannot write to {$tmpfname}"); |
|
820
|
820
|
} |
|
821
|
821
|
|
|
822
|
|
- $handle = fopen( $tmpfname, DropboxFile::MODE_WRITE); |
|
|
822
|
+ $handle = fopen($tmpfname, DropboxFile::MODE_WRITE); |
|
823
|
823
|
|
|
824
|
824
|
if (!is_resource($handle)) |
|
825
|
825
|
{ // Test if PHP could open the file |
|
@@ -1199,7 +1199,7 @@ discard block |
|
|
block discarded – undo |
|
1199
|
1199
|
|
|
1200
|
1200
|
//Since the metadata is returned as a json string |
|
1201
|
1201
|
//it needs to be decoded into an associative array |
|
1202
|
|
- $metadata = json_decode((string)$data, true); |
|
|
1202
|
+ $metadata = json_decode((string) $data, true); |
|
1203
|
1203
|
} |
|
1204
|
1204
|
|
|
1205
|
1205
|
//Return the metadata |
Please login to merge, or discard this patch.