1 parent 420e8bc commit 1bb1f73Copy full SHA for 1bb1f73
1 file changed
app/Presenters/AssetPresenter.php
@@ -391,7 +391,7 @@ public function fullName()
391
public function eol_date()
392
{
393
394
- if (( $this->purchase_date ) && ( $this->model )) {
+ if (( $this->purchase_date ) && ( $this->model ) && ($this->model->model->eol) ) {
395
$date = date_create($this->purchase_date);
396
date_add($date, date_interval_create_from_date_string($this->model->model->eol . ' months'));
397
return date_format($date, 'Y-m-d');
0 commit comments