[kronolith] SOLVED! But why! Re: free/busy, almost there but...

Ken Weaverling weave at dtcc.edu
Tue Apr 5 12:36:39 PDT 2005


I finally fixed the display of the freebusy info in my installation, but
have no idea WHY it now works after my code change and why it worked for
others without it.

the change was...

*** horde/lib/Horde/iCalendar/vfreebusy.php.dist        2005-04-05 15:26:50.241107624 -0400
--- horde/lib/Horde/iCalendar/vfreebusy.php     2005-04-05 15:32:18.051272904 -0400
***************
*** 32,38 ****
                  foreach ($attribute['value'] as $value) {
                      if (array_key_exists('duration', $attribute['value'])) {
!                        $this->addBusyPeriod('BUSY', $value['start'], null, $value['duration']);
                      } else {
!                        $this->addBusyPeriod('BUSY', $value['start'], $value['end']);
                      }
                  }
--- 32,40 ----
                  foreach ($attribute['value'] as $value) {
                      if (array_key_exists('duration', $attribute['value'])) {
!                        $this->addBusyPeriod('BUSY', $attribute['value']['start'],
!                                           null, $attribute['value']['duration']);
                      } else {
!                        $this->addBusyPeriod('BUSY', $attribute['value']['start'],
!                                           $attribute['value']['end']);
                      }
                  }

There's still the cosmetic issue of the table cells being misaligned, but
at least it's working!

I'm using sql as the calendar back end, if that makes a difference.




More information about the kronolith mailing list