[sync] P800 & calendar
Iain McFarlane
imcfarla at ntlworld.com
Tue Jul 6 16:15:41 PDT 2004
On Tuesday 06 Jul 2004 23:17, Iain McFarlane wrote:
> On Tuesday 06 Jul 2004 22:37, Iain McFarlane wrote:
> <snip>
>
> now getting this in php.log:
> [06-Jul-2004 23:12:34] PHP Warning: Missing argument 1 for
> exportvcalendar() in /usr/share/pear/Horde/iCalendar.php on line 237
>
> Any ideas where exportvCalendar is called?
>
> Cheers,
>
> Iain
Ok I got it working by patching two files - not particularly clever but...
--- /var/www/html/horde/framework/Data/Data/vtodo.php 2004-04-07 15:43:06.000000000 +0100
+++ Data/vtodo.php.php D2004-07-07 00:07:34.929205753 +0100a/vtodo.php Data/vtodoata/vtodo.php Data/vtodData/vtodo.ph
@@ -50,7 +50,7 @@todo.php Data/vta/Data/vtodo.php Data/vta/Data/vtodo.php Data/ata/Data/vtodo.php Data
$iCal->addComponent($vTodo);.php /var/www/html/horde/framework/Data/Data/vtodo.php Da
}
- return $iCal->exportvCalendar();
+ return $iCal->exportvCalendar($this);
}
/**
--- /var/www/html/horde/framework/iCalendar/iCalendar.php 2004-07-06 22:06:21.787243000 +0100
+++ iCalendar.php 2004-07-07 00:12:18.270291523 +0100
@@ -625,6 +625,10 @@
*/
function _parseDateTime($text)
{
+ if (is_array($text)) {
+ $text = $text[0];
+ }
+
$dateParts = split('T', $text);
if (count($dateParts) != 2 && !empty($text)) {
// Not a datetime field but may be just a date field.
@@ -743,6 +747,10 @@
*/
function _parseDate($text)
{
+ if (is_array($text)) {
+ $text = $text[0];
+ }
+
if (strlen($text) != 8) {
return false;
}
More information about the sync
mailing list