Skip to content

Commit

Permalink
Update pData.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro-fiore authored May 31, 2019
1 parent 1362288 commit c12ded1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c12ded1

Please sign in to comment.