Skip to content

Commit

Permalink
Fix by in enum graphs with 0 values
Browse files Browse the repository at this point in the history
Fixes #21575
  • Loading branch information
vboctor committed Aug 1, 2016
1 parent 89fd6b8 commit 5ccda88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/MantisGraph/core/graph_api.php
Expand Up @@ -33,7 +33,7 @@ function graph_strings_array( array $p_strings ) {
$t_js_labels = '';

foreach ( $p_strings as $t_label ) {
if ( !empty( $t_js_labels ) ) {
if ( $t_js_labels !== '' ) {
$t_js_labels .= ', ';
}

Expand All @@ -52,7 +52,7 @@ function graph_numeric_array( array $p_values ) {
$t_js_values = '';

foreach( $p_values as $t_value ) {
if ( !empty( $t_js_values ) ) {
if ( $t_js_values !== '' ) {
$t_js_values .= ', ';
}

Expand Down

0 comments on commit 5ccda88

Please sign in to comment.