summaryrefslogtreecommitdiffstats
path: root/admin/survey/pChart/classes/class.pData.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/pChart/classes/class.pData.php
parentprvi-commit (diff)
download1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip
Diffstat (limited to '')
-rw-r--r--admin/survey/pChart/classes/class.pData.php4
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)
{