Skip to content

Commit

Permalink
I flubbed the merge, doh
Browse files Browse the repository at this point in the history
  • Loading branch information
brycied00d committed Jun 13, 2011
1 parent ba9285f commit cbb9162
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Cloud/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,11 @@ public function addFile($path) {

// Request S3 data
$s3 = $this->_execute('http://my.cl.ly/items/new');
if ($s3-> uploads_remaining < 1) {
throw new CloudException('Account has reached its maximum number of uploads for the day.', CLOUD_EXCEPTION_MAX_UPLOADS);
}

// Check if we can upload
if(isset($s3->num_remaining) && $s3->num_remaining < 1) {
throw new Cloud_Exception('Insufficient uploads remaining. Please consider upgrading to CloudApp Pro', CLOUD_EXCEPTION_PRO);
}
// Check if we can upload
if(isset($s3->num_remaining) && $s3->num_remaining < 1) {
throw new Cloud_Exception('Insufficient uploads remaining. Please consider upgrading to CloudApp Pro', CLOUD_EXCEPTION_PRO);
}

// Create body and upload file
$body = array();
Expand Down

0 comments on commit cbb9162

Please sign in to comment.