contrib/php-collection: A few more bug-fixes to the graphing scripts.
[collectd.git] / contrib / php-collection / graph.php
index e536576..17749e0 100644 (file)
@@ -112,6 +112,13 @@ function error400($title, $msg) {
        return error(400, "Bad request", $title, $msg);
 }
 
+/**
+ * Incomplete / invalid request
+ */
+function error500($title, $msg) {
+       return error(500, "Internal error", $title, $msg);
+}
+
 // Process input arguments
 $host     = read_var('host', $_GET, null);
 if (is_null($host))