From 36d35410a21e5482c2fd308b2ee05e4e00abfbd8 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 5 Oct 2011 11:42:59 +0200 Subject: [PATCH] Don't send an empty lang attribute. --- inc/tz/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/tz/list.php b/inc/tz/list.php index 705a1e0b..1ed307d7 100644 --- a/inc/tz/list.php +++ b/inc/tz/list.php @@ -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); }