diff --git a/3.1/modules/bitly/helpers/bitly_event.php b/3.1/modules/bitly/helpers/bitly_event.php index f84b234a..781f33f6 100644 --- a/3.1/modules/bitly/helpers/bitly_event.php +++ b/3.1/modules/bitly/helpers/bitly_event.php @@ -52,8 +52,8 @@ class bitly_event_Core { } } - static function info_block_metadata($block, $item_id) { - $link = ORM::factory("bitly_link")->where("item_id", "=", $item_id)->find(); + static function info_block_metadata($block, $item) { + $link = ORM::factory("bitly_link")->where("item_id", "=", $item->id)->find(); if ($link->loaded()) { $info = $block->content->metadata; $info["bitly_url"] = array(