summaryrefslogtreecommitdiffstats
path: root/apis/news.inc.php
diff options
context:
space:
mode:
authorJonathan Bauer2014-06-05 17:40:12 +0200
committerJonathan Bauer2014-06-05 17:40:12 +0200
commite1a9c47fdf58e28cd6da5cc502aa49ff1a604a71 (patch)
treecd1328c5142de905a4ec4e14f4cb50fd3544f735 /apis/news.inc.php
parentnews api for vmchooser2 (diff)
downloadslx-admin-e1a9c47fdf58e28cd6da5cc502aa49ff1a604a71.tar.gz
slx-admin-e1a9c47fdf58e28cd6da5cc502aa49ff1a604a71.tar.xz
slx-admin-e1a9c47fdf58e28cd6da5cc502aa49ff1a604a71.zip
'null' news if no news are saved on the DB.
Diffstat (limited to 'apis/news.inc.php')
-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>";
}
-