diff --git a/app/Models/Presenters/CompanyPresenter.php b/app/Models/Presenters/CompanyPresenter.php index 9cfb444cff..6706399ff6 100644 --- a/app/Models/Presenters/CompanyPresenter.php +++ b/app/Models/Presenters/CompanyPresenter.php @@ -38,7 +38,7 @@ class CompanyPresenter extends EntityPresenter $settings = $this->entity->settings; } - return iconv_strlen($settings->company_logo > 0) ? $settings->company_logo : 'https://www.invoiceninja.com/wp-content/uploads/2019/01/InvoiceNinja-Logo-Round-300x300.png'; + return (strlen($settings->company_logo) > 0) ? $settings->company_logo : 'https://www.invoiceninja.com/wp-content/uploads/2019/01/InvoiceNinja-Logo-Round-300x300.png'; } public function address($settings = null) diff --git a/app/Utils/Traits/Uploadable.php b/app/Utils/Traits/Uploadable.php index aac15a6c1d..fb3debeca3 100644 --- a/app/Utils/Traits/Uploadable.php +++ b/app/Utils/Traits/Uploadable.php @@ -24,6 +24,8 @@ trait Uploadable if ($file) { $path = UploadAvatar::dispatchNow($file, $company->company_key); +info("the path {$path}"); + if ($path) { $settings = $entity->settings; $settings->company_logo = $path;