summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-12 12:15:28 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-12 12:15:28 +0000
commit40b5444276af768209c8a6b0df633b150da86ac8 (patch)
treec7745ebc855b4ebd785fc069a1e323a79c19182b /src/options
parent6368fc5b861737d0620995bc930317d66e8c31c7 (diff)
downloadzetacomponents-graph-40b5444276af768209c8a6b0df633b150da86ac8.zip
zetacomponents-graph-40b5444276af768209c8a6b0df633b150da86ac8.tar.gz
- Fixed issue #10599: Pie chart label formattig callback only accepts callback
functions but neither static nor non static methods.
Diffstat (limited to 'src/options')
-rw-r--r--src/options/pie_chart.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options/pie_chart.php b/src/options/pie_chart.php
index ed4bbdb..c975bf9 100644
--- a/src/options/pie_chart.php
+++ b/src/options/pie_chart.php
@@ -72,7 +72,7 @@ class ezcGraphPieChartOptions extends ezcGraphChartOptions
$this->properties['label'] = (string) $propertyValue;
break;
case 'labelCallback':
- if ( is_string( $propertyValue ) && ezcBaseFeatures::hasFunction( $propertyValue ) )
+ if ( is_callable( $propertyValue ) )
{
$this->properties['labelCallback'] = $propertyValue;
}
OpenPOWER on IntegriCloud