- echo "<addressparts>";\r
- foreach($aAddress as $sKey => $sValue)\r
- {\r
- $sKey = str_replace(' ','_',$sKey);\r
- echo "<$sKey>";\r
- echo htmlspecialchars($sValue);\r
- echo "</$sKey>";\r
- }\r
- echo "</addressparts>";\r
+ if ($bShowAddressDetails) {\r
+ echo "<addressparts>";\r
+ foreach($aAddress as $sKey => $sValue)\r
+ {\r
+ $sKey = str_replace(' ','_',$sKey);\r
+ echo "<$sKey>";\r
+ echo htmlspecialchars($sValue);\r
+ echo "</$sKey>";\r
+ }\r
+ echo "</addressparts>";\r
+ }\r