mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
"Fix for not working birthdays in xmlrpc as reported on the users-list"
This commit is contained in:
parent
891906d72f
commit
d683c2c7e1
@ -193,9 +193,11 @@ class boaddressbook
|
|||||||
$data = array_diff($data,array('',null));
|
$data = array_diff($data,array('',null));
|
||||||
|
|
||||||
// translate birthday to a iso8601 date
|
// translate birthday to a iso8601 date
|
||||||
if(isset($data['bday']))
|
if(isset($data['bday']) && $data['bday'])
|
||||||
{
|
{
|
||||||
|
$y = $m = $d = null;
|
||||||
list($y,$m,$d) = explode('-',$data['bday']);
|
list($y,$m,$d) = explode('-',$data['bday']);
|
||||||
|
if (is_null($d)) list($m,$d,$y) = explode('/',$data['bday']);
|
||||||
$data['bday'] = $GLOBALS['server']->date2iso8601(array('year'=>$y,'month'=>$m,'mday'=>$d));
|
$data['bday'] = $GLOBALS['server']->date2iso8601(array('year'=>$y,'month'=>$m,'mday'=>$d));
|
||||||
}
|
}
|
||||||
// translate timestamps
|
// translate timestamps
|
||||||
|
Loading…
Reference in New Issue
Block a user