summaryrefslogtreecommitdiffstats
path: root/apis/news.inc.php
diff options
context:
space:
mode:
authorJonathan Bauer2014-06-05 18:00:00 +0200
committerJonathan Bauer2014-06-05 18:00:00 +0200
commit2ea9f68fc7932bd659d0a08910d07e4c6228c625 (patch)
tree62ab45749afbb4d3343fa41f0e7178f1e46f998b /apis/news.inc.php
parent'null' news if no news are saved on the DB. (diff)
downloadslx-admin-2ea9f68fc7932bd659d0a08910d07e4c6228c625.tar.gz
slx-admin-2ea9f68fc7932bd659d0a08910d07e4c6228c625.tar.xz
slx-admin-2ea9f68fc7932bd659d0a08910d07e4c6228c625.zip
fancier news page + comments
Diffstat (limited to 'apis/news.inc.php')
-rw-r--r--apis/news.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apis/news.inc.php b/apis/news.inc.php
index 4f06abf7..ace41b21 100644
--- a/apis/news.inc.php
+++ b/apis/news.inc.php
@@ -20,6 +20,7 @@ if ($row !== false ) {
echo "</news>";
} else {
+ // no news in DB, output a 'null' news xml
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
echo "<news>null</news>";
}