From f40d3905a9984b7927d2b3b3a780b38fb09696fc Mon Sep 17 00:00:00 2001 From: Bruno Massa <brmassa@67164.no-reply.drupal.org> Date: Tue, 11 Mar 2008 14:36:25 +0000 Subject: [PATCH] Bugs fixed: * charts_chart() function now works fine --- charts.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts.module b/charts.module index a0e4bbe..27a8dfc 100644 --- a/charts.module +++ b/charts.module @@ -14,8 +14,8 @@ * to print the given data. * * @param $chart_provider - * String. The chart provider. With this module you might install - * 'googlechart', 'openflashchart' and 'fusioncharts' + * String. The chart provider code. With this module you might install + * 'google_charts', 'openflashchart' and 'fusioncharts' * @param &$data * Array. The chart data, described on chart_api.txt * @return @@ -23,8 +23,8 @@ * JavaScript external files) */ function charts_chart($chart_provider, &$data) { - if (function_exists()) { - $chart_provider = $chart_provider .'_chartapi'; + $chart_provider = $chart_provider .'_chartsapi'; + if (function_exists($chart_provider)) { return $chart_provider($data); } } -- GitLab