mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Don't send an empty lang attribute.
This commit is contained in:
1 parent
fde9af2a07
commit
36d35410a2
1 file changed
+1
-1
+1
-1
@@ -74,7 +74,7 @@ if ( $qry->Exec('tz/list',__LINE__,__FILE__) && $qry->rows() > 0 ) {
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user