From: Michael J. Rubinsky Date: Thu, 13 Jan 2011 01:30:41 +0000 (-0500) Subject: Fix generating fb info in certain cases X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4e42e7381b925b4b2e32c1ddca0685b69cb437da;p=horde.git Fix generating fb info in certain cases --- diff --git a/kronolith/attendees.php b/kronolith/attendees.php index 0fcede35f..b789a5cef 100644 --- a/kronolith/attendees.php +++ b/kronolith/attendees.php @@ -196,9 +196,9 @@ if (!is_array($cal)) { // If the free/busy calendars preference is empty, default to the user's // default_share preference, and if that's empty, to their username. if (!$cal) { - $cal = $prefs->getValue('default_share'); + $cal = 'internal_' . $prefs->getValue('default_share'); if (!$cal) { - $cal = $GLOBALS['registry']->getAuth(); + $cal = 'internal_' . $GLOBALS['registry']->getAuth(); } $cal = array($cal); } diff --git a/kronolith/fb.php b/kronolith/fb.php index ce2384f48..49aa9a9e3 100644 --- a/kronolith/fb.php +++ b/kronolith/fb.php @@ -42,9 +42,9 @@ if (!$fb) { // the user's default_share preference, and if that's empty, // to their username. if (!$cal) { - $cal = $prefs->getValue('default_share'); + $cal = 'internal_' . $prefs->getValue('default_share'); if (!$cal) { - $cal = $user; + $cal = 'internal_' . $user; } } }