diff options
author | Jeremy Trojan <jer@jerdiggity.com> | 2011-05-29 12:55:58 -0700 |
---|---|---|
committer | Jeremy Trojan <jer@jerdiggity.com> | 2011-05-29 12:55:58 -0700 |
commit | 5738e01c49969e1bcc00037e373e9691af7e4643 (patch) | |
tree | 6cd9f493dbbbf416a6e210ac0d0e7aa90405cf65 | |
parent | 935ed4838cc9564c1f831b7d1ba4f9783d3f81a0 (diff) | |
download | fblikebutton-5738e01c49969e1bcc00037e373e9691af7e4643.tar.gz fblikebutton-5738e01c49969e1bcc00037e373e9691af7e4643.tar.bz2 |
Issue #1167400 by Craig Gardner, tykern, Maglor, Starminder: Patching line 58 of fblikebutton.module to fix undefined property notice.
-rw-r--r-- | fblikebutton.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fblikebutton.module b/fblikebutton.module index 3ab8693..984f54f 100644 --- a/fblikebutton.module +++ b/fblikebutton.module @@ -55,7 +55,7 @@ function fblikebutton_node_view($node, $view_mode) { $full = ($view_mode == 'full') ? TRUE : FALSE; $show = ( ! empty($types[$node->type]) && user_access('access fblikebutton')); $likebase = $base_url . '/'; - $likepath = drupal_get_path_alias($node->uri['path']); + $likepath = drupal_get_path_alias(isset($node->uri) ? $node->uri['path'] : sprintf('node/%u', $node->nid)); $webpage_to_like = $likebase . $likepath; $likebutton_weight = variable_get('fblikebutton_weight', '0'); $conf = array( |