From 9e3874819ef6d7382131da579775f6e13f6abac5 Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 25 Jul 2016 15:28:35 +1000 Subject: [PATCH] Added check for required_axis, if we need axis based data --- classes/HighChart/Type.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/HighChart/Type.php b/classes/HighChart/Type.php index 5bb6d5a..46756f0 100644 --- a/classes/HighChart/Type.php +++ b/classes/HighChart/Type.php @@ -32,7 +32,7 @@ abstract class HighChart_Type { case 'data': $args = array_shift($args); - if (array_diff(array_keys($args),$this->_required_axis)) + if ($this->_required_axis AND array_diff(array_keys($args),$this->_required_axis)) throw new Kohana_Exception('Invalid data arguments for chart, expecting [:args]',array(':args'=>implode('|',$this->_required_axis))); if (! $args)