From 1a73c89487af64146c3817c9c1e8ff2ffafc5673 Mon Sep 17 00:00:00 2001 From: Robert Munteanu Date: Tue, 6 Dec 2011 18:05:25 +0200 Subject: [PATCH] Fixes #12393: MantisGraph graph_api.php:error_text() is broken when using JpGraph --- plugins/MantisGraph/core/graph_api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 );