Skip to content

Commit 352807c

Browse files
committed
Fixed RB-20498 - Check that logo file exists on acceptance
1 parent 3aa046b commit 352807c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Account/AcceptanceController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function store(Request $request, $id) : RedirectResponse
138138
// Convert PDF logo to base64 for TCPDF
139139
// This is needed for TCPDF to properly embed the image if it's a png and the cache isn't writable
140140
$encoded_logo = null;
141-
if ($settings->acceptance_pdf_logo) {
141+
if (($settings->acceptance_pdf_logo) && (Storage::disk('public')->exists($settings->acceptance_pdf_logo))) {
142142
$encoded_logo = base64_encode(file_get_contents(public_path() . '/uploads/' . $settings->acceptance_pdf_logo));
143143
}
144144

0 commit comments

Comments
 (0)