Skip to content

Commit

Permalink
t Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Recca Tsai committed Aug 2, 2016
2 parents b2f0adb + 88e0c21 commit 06d02fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ protected function copy($source, $target, $offset)
{
$mode = ($offset === 0) ? 'wb' : 'ab';

if (! ($targetStream = @fopen($target, $mode))) {
if (($targetStream = @fopen($target, $mode)) === false) {
throw new UploadException('Failed to open output stream.', 102);
}

if (! ($sourceStream = @fopen($source, 'rb'))) {
if (($sourceStream = @fopen($source, 'rb')) === false) {
throw new UploadException('Failed to open input stream', 101);
}

Expand Down

0 comments on commit 06d02fa

Please sign in to comment.