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

Updated if conditional

parent b920cb8f
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ class DateRangeAggregation extends AbstractAggregation ...@@ -79,7 +79,7 @@ class DateRangeAggregation extends AbstractAggregation
*/ */
public function getArray() public function getArray()
{ {
if ($this->getField() && $this->getFormat() && $this->ranges) { if ($this->getField() && $this->getFormat() && !empty($this->ranges)) {
$data = [ $data = [
'format' => $this->getFormat(), 'format' => $this->getFormat(),
'field' => $this->getField(), 'field' => $this->getField(),
......
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