From da7e61ff4b1850e028aac53168936e1599ea7072 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 12 Aug 2010 13:00:39 -0400 Subject: [PATCH] avoid undefined variable errors --- horde/services/facebook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde/services/facebook.php b/horde/services/facebook.php index 28ff76c0e..2f5db7eba 100644 --- a/horde/services/facebook.php +++ b/horde/services/facebook.php @@ -51,7 +51,7 @@ if ($token = Horde_Util::getFormData('auth_token')) { $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") . ''); return $html; @@ -68,7 +68,7 @@ if ($token = Horde_Util::getFormData('auth_token')) { . ' ' . _("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") . ''); return $html; -- 2.11.0