From 1c7f637c8e5e5535c6c7146d1fa9ba6c4c319b70 Mon Sep 17 00:00:00 2001
From: Bruno Massa <brmassa@67164.no-reply.drupal.org>
Date: Thu, 13 Nov 2008 19:30:44 +0000
Subject: [PATCH] Bugs fixed: * #333918 by brmassa: Fatal error: Call to
 undefined function: () in /var/www/.../charts/charts.module on line 79

---
 charts.module | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/charts.module b/charts.module
index 5cf5cb0..a635c3f 100644
--- a/charts.module
+++ b/charts.module
@@ -73,10 +73,11 @@ function charts_chart(&$data) {
 
   // Include the file that has the rendering function
   include_once $chart_provider[$data['#plugin']]['file'];
-  $func = $chart_provider[$data['#plugin']]['render'];
-
-  // Using the filter's rendering function, print the chart
-  return $func($data);
+  if ($func = $chart_provider[$data['#plugin']]['render']) {
+    // Using the filter's rendering function, print the chart
+    return $func($data);
+  }
+  return '';
 }
 
 /**
-- 
GitLab