mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
[Vertical Bar Charts] Fixed strpos check
This commit is contained in:
parent
b6688dda1c
commit
52e6503018
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user