diff --git a/src/pData.php b/src/pData.php index 49201f0..bbc9625 100644 --- a/src/pData.php +++ b/src/pData.php @@ -128,7 +128,7 @@ function AddPoint($Value, $Serie = "Serie1", $Description = "") } } - if (count($Value) == 1) { + if (!is_array($Value) or count($Value) == 1) { $this->Data[$ID][$Serie] = $Value; if ($Description != "") $this->Data[$ID]["Name"] = $Description;