From: Christian Weiske Date: Sat, 25 May 2013 21:47:45 +0000 (+0200) Subject: check for rrd extension X-Git-Tag: v1.0.0~9 X-Git-Url: https://git.cweiske.de/usb-wde1-tools.git/commitdiff_plain/e6c166f53f76da3d5700bad559c1f7efabd21baf check for rrd extension --- diff --git a/htmlreport/gen-html.php b/htmlreport/gen-html.php index 92dc41c..8969e0d 100755 --- a/htmlreport/gen-html.php +++ b/htmlreport/gen-html.php @@ -7,6 +7,11 @@ if (!file_exists($cfgfile)) { } require $cfgfile; +if (!function_exists('rrd_lastupdate')) { + echo "rrd PHP extension is missing\n"; + exit(2); +} + $data = array(); foreach ($names as $id => $name) { $data[$id]['name'] = $name;