egw version:latest subversion revision 39384
Hi devs,
I did a xmlrpc request
login
infolog.add
logout
It doens’t work!
in appache error log I found:
[Mon Jun 04 11:13:20 2012] [error] [client 192.168.25.20] PHP Warning: Parameter 1 to boinfolog::write() expected to be a reference, value given in /var/www/egroupware/phpgwapi/inc/common_functions.inc.php on line 907
here my changes:
Index: /var/www/egroupware/infolog/inc/class.boinfolog.inc.php
— /var/www/egroupware/infolog/inc/class.boinfolog.inc.php (revision 39375)
+++ /var/www/egroupware/infolog/inc/class.boinfolog.inc.php (working copy)
@@ -169,7 +169,7 @@
* @param boolean $touch_modified=true touch the modification data and sets the modiefier’s user-id
* @return int/boolean info_id on a successfull write or false
*/
- function write(&$values,$check_defaults=True,$touch_modified=True)
- function write($values,$check_defaults=True,$touch_modified=True)
{
egw version:latest subversion revision 39384
Hi I did an xmlrpc request
login
infolog.add
logout
It doens’t work!
in appache error log I found:
[Mon Jun 04 11:13:20 2012] [error] [client 192.168.25.20] PHP Warning: Parameter 1 to boinfolog::write() expected to be a reference, value given in /var/www/egroupware/phpgwapi/inc/common_functions.inc.php on line 907
maybe a quick fix, but it works. Here my changes:
Index: /var/www/egroupware/infolog/inc/class.boinfolog.inc.php
===================================================================
--- /var/www/egroupware/infolog/inc/class.boinfolog.inc.php (revision 39375)
+++ /var/www/egroupware/infolog/inc/class.boinfolog.inc.php (working copy)
@@ -169,7 +169,7 @@
* @param boolean $touch_modified=true touch the modification data and sets the modiefier's user-id
* @return int/boolean info_id on a successfull write or false
*/
- function write(&$values,$check_defaults=True,$touch_modified=True)
+ function write($values,$check_defaults=True,$touch_modified=True)
{
//echo "boinfolog::write()values="; _debug_array($values);
// allow to (un)set check_defaults and touch_modified via values, eg. via xmlrpc
@@ -205,9 +205,9 @@
* @param $query[col_filter] array with column-name - data pairs, data == '' means no filter (!)
* @return array with id's as key of the matching log-entries
*/
- function &search(&$query)
+ function &search($query)
{
//echo "boinfolog::write()values="; _debug_array($values);
// allow to (un)set check_defaults and touch_modified via values, eg. via xmlrpc
@@ -205,9 +205,9 @@
* @param $query[col_filter] array with column-name - data pairs, data == '' means no filter (!)
* @return array with id's as key of the matching log-entries
*/
- function &search(&$query)
+ function &search($query)
{
Regards
Konrad