diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 1b652ee52e..0277e787c0 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -139,7 +139,7 @@ class SearchController extends Controller $results = $elastic->search($params); - nlog($results['hits']); + // nlog($results['hits']); $this->mapResults($results['hits']['hits'] ?? []); diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index b59f86a2bd..d6d8124b1d 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -278,8 +278,8 @@ class Invoice extends BaseModel 'custom_value3' => (string)$this->custom_value3, 'custom_value4' => (string)$this->custom_value4, 'company_key' => $this->company->company_key, - 'po_number' => (string)$this->po_number, - 'line_items' => (array)$this->line_items, + 'po_number' => (string) $this->po_number, + 'line_items' => (array) $this->line_items, ]; } diff --git a/app/Models/Payment.php b/app/Models/Payment.php index bfc3d7e094..8be9fe9cc5 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -476,7 +476,7 @@ class Payment extends BaseModel if (Ninja::isHosted()) { $domain = $this->company->domain(); } else { - $domain = strlen($this->company->portal_domain) > 5 ? $this->company->portal_domain : config('ninja.app_url'); + $domain = strlen($this->company->portal_domain ?? '') > 5 ? $this->company->portal_domain : config('ninja.app_url'); } return $domain.'/client/payment/'.$this->client->contacts()->first()->contact_key.'/'.$this->hashed_id.'?next=/client/payments/'.$this->hashed_id;