summaryrefslogtreecommitdiff
path: root/actions/xrds.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/xrds.php')
-rw-r--r--actions/xrds.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/xrds.php b/actions/xrds.php
index 6b4c3cdf5..d59928e91 100644
--- a/actions/xrds.php
+++ b/actions/xrds.php
@@ -107,7 +107,9 @@ class XrdsAction extends Action {
function show_service($type, $uri, $params=NULL, $sigs=NULL, $localId=NULL) {
common_element_start('Service');
- common_element('URI', NULL, $uri);
+ if ($uri) {
+ common_element('URI', NULL, $uri);
+ }
common_element('Type', NULL, $type);
if ($params) {
foreach ($params as $param) {