diff --git a/plugins/MantisGraph/core/graph_api.php b/plugins/MantisGraph/core/graph_api.php index 0542cfe243..89d8d8bd68 100644 --- a/plugins/MantisGraph/core/graph_api.php +++ b/plugins/MantisGraph/core/graph_api.php @@ -883,14 +883,15 @@ function graph_date_format( $p_date ) { # ---------------------------------------------------- function error_check( $bug_count, $title ) { if( 0 == $bug_count ) { - $t_graph_font = graph_get_font(); - error_text( $title, plugin_lang_get( 'not_enough_data' ) ); } } function error_text( $title, $text ) { if( OFF == plugin_config_get( 'eczlibrary' ) ) { + + $t_graph_font = graph_get_font(); + $graph = new CanvasGraph( 300, 380 ); $txt = new Text( $text, 150, 100 );