diff options
-rw-r--r-- | src/options/gd_driver.php | 2 | ||||
-rw-r--r-- | src/options/pie_chart.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/options/gd_driver.php b/src/options/gd_driver.php index 37000f7..0928ddb 100644 --- a/src/options/gd_driver.php +++ b/src/options/gd_driver.php @@ -118,7 +118,7 @@ class ezcGraphGdDriverOptions extends ezcGraphDriverOptions } break; case 'resampleFunction': - if ( function_exists( $propertyValue ) ) + if ( ezcBaseFeatures::hasFunction( $propertyValue ) ) { $this->properties['resampleFunction'] = $propertyValue; } diff --git a/src/options/pie_chart.php b/src/options/pie_chart.php index c52a173..8e47be7 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 ) && function_exists( $propertyValue ) ) + if ( is_string( $propertyValue ) && ezcBaseFeatures::hasFunction( $propertyValue ) ) { $this->properties['labelCallback'] = $propertyValue; } |