summaryrefslogtreecommitdiffstats
path: root/src/axis/date.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-27 13:05:22 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-27 13:05:22 +0000
commit454b96f54673bbd3e35100e6683fa781808ebd4b (patch)
treefc99830f6bdc4a0f8921fb12998fd7df6e8a4477 /src/axis/date.php
parent1d0cc07e07709c1bc59bbbf591c23b846d4fce57 (diff)
downloadzetacomponents-graph-454b96f54673bbd3e35100e6683fa781808ebd4b.zip
zetacomponents-graph-454b96f54673bbd3e35100e6683fa781808ebd4b.tar.gz
- Added missing tests for axis
Diffstat (limited to 'src/axis/date.php')
-rw-r--r--src/axis/date.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/axis/date.php b/src/axis/date.php
index 7bb8e1c..ac9cd1f 100644
--- a/src/axis/date.php
+++ b/src/axis/date.php
@@ -150,7 +150,7 @@ class ezcGraphChartElementDateAxis extends ezcGraphChartElementAxis
{
foreach ( $values as $value )
{
- if ( is_numeric( $value ) )
+ if ( is_int( $value ) || is_float( $value ) )
{
$value = (int) $value;
}
OpenPOWER on IntegriCloud