|
|
@@ -167,8 +167,8 @@ trait LidarrHomepageItem
|
|
|
|
|
|
public function getLidarrCalendar($startDate = null, $endDate = null)
|
|
|
{
|
|
|
- $startDate = ($startDate) ?? $_GET['start'];
|
|
|
- $endDate = ($endDate) ?? $_GET['end'];
|
|
|
+ $startDate = ($startDate) ?? $_GET['start'] ?? date('Y-m-d', strtotime('-' . $this->config['calendarStart'] . ' days'));
|
|
|
+ $endDate = ($endDate) ?? $_GET['end'] ?? date('Y-m-d', strtotime('+' . $this->config['calendarEnd'] . ' days'));
|
|
|
if (!$this->homepageItemPermissions($this->lidarrHomepagePermissions('calendar'), true)) {
|
|
|
return false;
|
|
|
}
|