Hi Hans-Jürgen,
fixed it in trunk, EPL 9.1 and 1.6:
http://www.egroupware.org/viewvc/egroupware/trunk/calendar/inc/class.calendar_so.inc.php?r1=27926&r2=27925&pathrev=27926
Ralf
Hans-Juergen Tappe schrieb:
Hi!
in 1.6.002, I get the following error when using a custom field
"Select Users" with a line number (multiple) of 2:
mb_strlen() expects parameter 1 to be string, array given in
/var/www/egroupware/calendar/inc/class.calendar_so.inc.php on line 601
It works, if I add array-awareness to the if expression in
calendar/inc/class.calendar_so.inc.php, lines 599 ff. to:
if ($name[0] == ‘#’)
{
/* Be aware of arrays and string inputs. */
if ((!is_array($value) && (strlen($value) == 0)) ||
((is_array($value)) && (count($value) == 0)))
{
$this->db->delete($this->extra_table,array(
‘cal_id’ => $cal_id,
‘cal_extra_name’ => substr($name,1),
),LINE,FILE,‘calendar’);
}
else
{
if (is_array($value))
{
$db_string = join(’,’, $value);
}
else
{
$db_string = $value;
}
$this->db->insert($this->extra_table,array(
‘cal_extra_value’ => $db_string,
),array(
‘cal_id’ => $cal_id,
‘cal_extra_name’ => substr($name,1),
),LINE,FILE,‘calendar’);
}
}
Can you please fix this in head and 1.6?
Thanks a lot,
Hans-Jürgen
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers