[Kolab-devel] freebusy.class.php problem
Steffen Hansen
steffen at klaralvdalens-datakonsult.se
Fri Apr 7 14:49:20 CEST 2006
On Thursday 06 April 2006 22:56, Marcus Hüwe wrote:
> Hi,
>
>
> Richard and I discovered a new bug.
> If you browse to
> https://<your-domain>/kolab/freebusy/trigger/<user>%40<your-domain>.p
>fb you'll get the following error/notice:
>
> Notice: Only variable references should be returned by reference
> in /usr/share/php/kolab/freebusy/freebusy.class.php on line 138
I think this is just PHP being braindead about reference.
Can you check if the patch below fixes the issue?
cvs server: Diffing .
Index: freebusy.class.php.in
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy/freebusy.class.php.in,v
retrieving revision 1.3
diff -u -p -r1.3 freebusy.class.php.in
--- freebusy.class.php.in 2 Mar 2006 12:51:12 -0000 1.3
+++ freebusy.class.php.in 7 Apr 2006 12:48:59 -0000
@@ -135,7 +135,8 @@ class FreeBusy {
*/
//$vFb->addBusyPeriod( 'BUSY', 0,0, null );
$vCal->addComponent($vFb);
- return array($vCal->exportvCalendar(),$vCal->exportvCalendar());
+ $retval = array($vCal->exportvCalendar(),$vCal->exportvCalendar());
+ return $retval;
}
myLog("Reading messagelist", RM_LOG_DEBUG);
$getMessages_start = microtime_float();
regards
--
Steffen Hansen | Klarälvdalens Datakonsult AB
Senior Software Engineer| http://www.klaralvdalens-datakonsult.se
|
| Platform-independent
| software solutions
More information about the devel
mailing list