From 62e83a2f2810034f1025592e7b5763f04f8389c0 Mon Sep 17 00:00:00 2001 From: Luke Gopher Date: Fri, 18 Dec 2015 17:07:40 +0100 Subject: [PATCH] Fix myql empty graphs Fix this problem when we have another plugin enabled than Mysql on a server --- includes/polling/applications/mysql.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/polling/applications/mysql.inc.php b/includes/polling/applications/mysql.inc.php index 78310711d..59ca7f81e 100644 --- a/includes/polling/applications/mysql.inc.php +++ b/includes/polling/applications/mysql.inc.php @@ -109,6 +109,7 @@ $mapping = array( ); $values = array(); +unset($fields); foreach ($mapping as $k => $v) { $fields[$k] = isset($map[$v]) ? $map[$v] : (-1); }