Fixes to pass unit testing

This commit is contained in:
Deon George
2020-04-02 08:59:22 +11:00
parent 23dc668c65
commit 57f24c9315
2 changed files with 2 additions and 2 deletions

View File

@@ -473,7 +473,7 @@ class Service extends Model
: NULL;
// For SSL Certificates, the invoice_to date is the expiry date of the Cert
if (is_null($result) AND $this->type->type == 'ssl' AND $this->type->valid_to)
if (is_null($result) AND $this->type AND $this->type->type == 'ssl' AND $this->type->valid_to)
return $this->type->valid_to;
return $result;