Skip to content
Snippets Groups Projects
Commit 6cda6c4f authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

More clarity for array checking

parent 3ebbf0f9
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ class Ipv4RangeAggregation extends AbstractAggregation
*/
public function getArray()
{
if ($this->getField() && $this->ranges) {
if ($this->getField() && !empty($this->ranges)) {
return [
'field' => $this->getField(),
'ranges' => array_values($this->ranges),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment