summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apis/news.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apis/news.inc.php b/apis/news.inc.php
index 344c0104..4f06abf7 100644
--- a/apis/news.inc.php
+++ b/apis/news.inc.php
@@ -19,5 +19,7 @@ if ($row !== false ) {
echo "\t" . "</date>" . "\n";
echo "</news>";
+} else {
+ echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
+ echo "<news>null</news>";
}
-