Permalink
Browse files

Issue #1437692 by mvc: Fixed Undefined property: stdClass::$data in s…

…horten_fetch() (line 421 of shorten.module).
  • Loading branch information...
1 parent c0d51b1 commit 67ddbcc52ce5b530ce29d8be1a1f6e409e559fad @IceCreamYou committed Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 shorten.module
View
2 shorten.module
@@ -378,7 +378,7 @@ function shorten_fetch($url, $tag = '', $special = '', $options = array()) {
);
if (variable_get('shorten_method', _shorten_method_default()) == 'php') {
$result = drupal_http_request($url, $options);
- $contents = $result->data;
+ $contents = isset($result->data) ? $result->data : NULL;
if (!empty($result->error)) {
watchdog(
'shorten',

0 comments on commit 67ddbcc

Please sign in to comment.