check if NumberToDisplay is set, if so apply to returned result.

This commit is contained in:
clindsay 2019-05-13 10:03:05 -07:00
parent a8b42b151a
commit 949430b487
1 changed files with 1 additions and 1 deletions

View File

@ -150,6 +150,6 @@ class BlogArchiveWidget extends Widget
$this->extend('updateGetArchive', $result);
return $result;
return $this->NumberToDisplay ? $result->limit($this->NumberToDisplay) : $result;
}
}