mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-20 01:44:15 +00:00
Don't send an empty lang attribute.
This commit is contained in:
parent
fde9af2a07
commit
36d35410a2
@ -74,7 +74,7 @@ if ( $qry->Exec('tz/list',__LINE__,__FILE__) && $qry->rows() > 0 ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$elements[] = new XMLElement('local-name', $tz->tzid, array( 'lang' => $lang ) );
|
$elements[] = new XMLElement('local-name', $tz->tzid, ( empty($lang) ? null : array( 'lang' => $lang ) ) );
|
||||||
}
|
}
|
||||||
$tzlist->NewElement('summary', $elements);
|
$tzlist->NewElement('summary', $elements);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user