From b46d1fa6a12ad628e6717f85b3d2c1f192859b91 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 18 Jan 2021 13:51:35 +0100 Subject: [PATCH] Fix removed unexpected values in stats graph --- htdocs/projet/graph_opportunities.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/graph_opportunities.inc.php b/htdocs/projet/graph_opportunities.inc.php index 9588951307a..66b04527772 100644 --- a/htdocs/projet/graph_opportunities.inc.php +++ b/htdocs/projet/graph_opportunities.inc.php @@ -69,7 +69,7 @@ if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) $listofstatus = array_keys($listofoppstatus); // Complete with values found into database and not into the dictionary foreach ($valsamount as $key => $val) { - if (!in_array($key, $listofstatus)) { + if (!in_array($key, $listofstatus) && $key) { $listofstatus[] = $key; } }