Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f6a94a6

Browse files
committedDec 6, 2011
Fixes #12393: MantisGraph graph_api.php:error_text() is broken when using JpGraph
1 parent 1880cef commit f6a94a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎plugins/MantisGraph/core/graph_api.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -883,14 +883,15 @@ function graph_date_format( $p_date ) {
883883
# ----------------------------------------------------
884884
function error_check( $bug_count, $title ) {
885885
if( 0 == $bug_count ) {
886-
$t_graph_font = graph_get_font();
887-
888886
error_text( $title, plugin_lang_get( 'not_enough_data' ) );
889887
}
890888
}
891889

892890
function error_text( $title, $text ) {
893891
if( OFF == plugin_config_get( 'eczlibrary' ) ) {
892+
893+
$t_graph_font = graph_get_font();
894+
894895
$graph = new CanvasGraph( 300, 380 );
895896

896897
$txt = new Text( $text, 150, 100 );

0 commit comments

Comments
 (0)
Please sign in to comment.