$filter = Horde_Util::getPost('filter');
$stream = $facebook->streams->get('', array(), Horde_Util::getPost('oldest'), Horde_Util::getPost('newest'), $count, $filter);
} catch (Horde_Service_Facebook_Exception $e) {
- $html .= sprintf(_("There was an error making the request: %s"), $e->getMessage());
+ $html = sprintf(_("There was an error making the request: %s"), $e->getMessage());
$html .= sprintf(_("You can also check your Facebook settings in your %s."), Horde::getServiceLink('options', 'horde')->add('group', 'facebook')->link() . _("preferences") . '</a>');
return $html;
. ' ' . _("Friend Requests:") . ' ' . count($notifications['friend_requests'])
. ' ' . _("Event Invites:") . ' ' . count($notifications['event_invites']);
} catch (Horde_Service_Facebook_Exception $e) {
- $html .= sprintf(_("There was an error making the request: %s"), $e->getMessage());
+ $html = sprintf(_("There was an error making the request: %s"), $e->getMessage());
$html .= sprintf(_("You can also check your Facebook settings in your %s."), Horde::getServiceLink('options', 'horde')->add('group', 'facebook')->link() . _("preferences") . '</a>');
return $html;