Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add status code to result regardless of hash

  • Loading branch information...
commit 3c55404f8f04f5e88cc34c0a2b5a9c20c91d70b1 1 parent 8da9925
@davedg629 davedg629 authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 bitly.php
View
4 bitly.php
@@ -92,10 +92,8 @@ function bitly_v3_shorten($longUrl, $domain = '', $x_login = '', $x_apiKey = '')
$result['global_hash'] = $output->{'data'}->{'global_hash'};
$result['long_url'] = $output->{'data'}->{'long_url'};
$result['new_hash'] = $output->{'data'}->{'new_hash'};
- $result['status_code'] = $output->status_code;
- } else {
- $result['status_code'] = $output->status_code;
}
+ $result['status_code'] = $output->status_code;
return $result;
}
Please sign in to comment.
Something went wrong with that request. Please try again.