From 9c1afbca92af650a216ea39de1fe75278eeae418 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 25 Jul 2014 22:05:44 +0200 Subject: support php versions without json support and show a warning message --- inc/html.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index 9107269..c8cfbaf 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -54,6 +54,19 @@ echo <<Collectd Graph Panel +EOT; + + if(!function_exists('json_decode')) { + echo << + Your php version doesn't support JSON. Your graphs would have looked more beautiful if it did. + + +EOT; + + } + +echo << EOT; -- cgit v1.1