diff options
author | Jonathan Bauer | 2014-06-05 18:00:00 +0200 |
---|---|---|
committer | Jonathan Bauer | 2014-06-05 18:00:00 +0200 |
commit | 2ea9f68fc7932bd659d0a08910d07e4c6228c625 (patch) | |
tree | 62ab45749afbb4d3343fa41f0e7178f1e46f998b /apis/news.inc.php | |
parent | 'null' news if no news are saved on the DB. (diff) | |
download | slx-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.php | 1 |
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>"; } |