Fix generating fb info in certain cases
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Jan 2011 01:30:41 +0000 (20:30 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Jan 2011 01:43:02 +0000 (20:43 -0500)
kronolith/attendees.php
kronolith/fb.php

index 0fcede3..b789a5c 100644 (file)
@@ -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);
 }
index ce2384f..49aa9a9 100644 (file)
@@ -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;
             }
         }
     }