From e1a9c47fdf58e28cd6da5cc502aa49ff1a604a71 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 5 Jun 2014 17:40:12 +0200 Subject: 'null' news if no news are saved on the DB. --- apis/news.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apis') 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" . "" . "\n"; echo ""; +} else { + echo '' . "\n"; + echo "null"; } - -- cgit v1.2.3-55-g7522