diff options
Diffstat (limited to 'admin/survey/pChart/classes/class.pData.php')
-rw-r--r-- | admin/survey/pChart/classes/class.pData.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/survey/pChart/classes/class.pData.php b/admin/survey/pChart/classes/class.pData.php index c6be3ff..768bea8 100644 --- a/admin/survey/pChart/classes/class.pData.php +++ b/admin/survey/pChart/classes/class.pData.php @@ -132,7 +132,7 @@ for($i=0;$i<=count($this->Data);$i++)
{ if(isset($this->Data[$i][$Serie])) { $ID = $i+1; } }
- if ( count($Value) == 1 )
+ if ( is_integer($Value) || (is_countable($Value) && count($Value) == 1) )
{
$this->Data[$ID][$Serie] = $Value;
if ( $Description != "" )
@@ -140,7 +140,7 @@ elseif (!isset($this->Data[$ID]["Name"]))
$this->Data[$ID]["Name"] = $ID;
}
- elseif( count($Value) > 1 )
+ elseif( is_countable($Value) && count($Value) > 1 )
{
foreach($Value as $key => $Val)
{
|