Commit f2dd40cb authored by Marcin Michalski's avatar Marcin Michalski Committed by Arkadiusz Kondas
Browse files

Properly check cluster points label (#323)

parent 53c5a6b9
......@@ -31,7 +31,7 @@ class Cluster extends Point implements IteratorAggregate
{
$points = [];
foreach ($this->points as $point) {
if (count($point->label) === 0) {
if ($point->label === null) {
$points[] = $point->toArray();
} else {
$points[$point->label] = $point->toArray();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment