diff options
author | Jonathan Bauer | 2014-06-05 17:40:12 +0200 |
---|---|---|
committer | Jonathan Bauer | 2014-06-05 17:40:12 +0200 |
commit | e1a9c47fdf58e28cd6da5cc502aa49ff1a604a71 (patch) | |
tree | cd1328c5142de905a4ec4e14f4cb50fd3544f735 /apis/news.inc.php | |
parent | news api for vmchooser2 (diff) | |
download | slx-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.php | 4 |
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>"; } - |