From 52e65030182b9ea1a2b915cedc83aad70f6482a0 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 1 Mar 2018 17:07:55 +0100 Subject: [PATCH] [Vertical Bar Charts] Fixed strpos check --- pandora_console/include/graphs/fgraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index d1df2f6397..50939b4271 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -190,7 +190,7 @@ function vbar_graph( else { $new_chart_data = array(); foreach ($chart_data as $key => $value) { - if(strlen($key) > 20 && strpos($key, ' - ') != -1){ + if(strlen($key) > 20 && strpos($key, ' - ') !== false){ $key_temp = explode(" - ",$key); $key_temp[0] = $key_temp[0]." \n"; $key_temp[1]= '...'.substr($key_temp[1],-15);