From: Michael J. Rubinsky Date: Thu, 12 Aug 2010 17:00:39 +0000 (-0400) Subject: avoid undefined variable errors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=da7e61ff4b1850e028aac53168936e1599ea7072;p=horde.git avoid undefined variable errors --- 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;