Skip to content
Snippets Groups Projects
Commit 1c7f637c authored by Bruno Massa's avatar Bruno Massa
Browse files

Bugs fixed:

* #333918 by brmassa: Fatal error: Call to undefined function: () in /var/www/.../charts/charts.module on line 79
parent 01eec499
No related branches found
No related tags found
No related merge requests found
...@@ -73,10 +73,11 @@ function charts_chart(&$data) { ...@@ -73,10 +73,11 @@ function charts_chart(&$data) {
// Include the file that has the rendering function // Include the file that has the rendering function
include_once $chart_provider[$data['#plugin']]['file']; include_once $chart_provider[$data['#plugin']]['file'];
$func = $chart_provider[$data['#plugin']]['render']; if ($func = $chart_provider[$data['#plugin']]['render']) {
// Using the filter's rendering function, print the chart
// Using the filter's rendering function, print the chart return $func($data);
return $func($data); }
return '';
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment