mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 00:21:00 -04:00
Handle missing logo file
This commit is contained in:
parent
7a06989689
commit
ad8bd3eda5
@ -58,6 +58,10 @@ trait HasLogo
|
||||
|
||||
$disk = $this->getLogoDisk();
|
||||
|
||||
if (! $disk->exists($this->logo)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $disk->get($this->logo);
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
$contents = $image;
|
||||
}
|
||||
|
||||
return 'data:image/jpeg;base64,' . base64_encode($contents);
|
||||
return $contents ? 'data:image/jpeg;base64,' . base64_encode($contents) : '';
|
||||
});
|
||||
|
||||
Form::macro('nav_link', function ($url, $text) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user