Merge pull request #11227 from inietov/fixes/exception_getimagesize
Fixes #11116 Error exception in getimagesize
This commit is contained in:
commit
bb933e5214
1 changed files with 8 additions and 1 deletions
|
@ -152,6 +152,13 @@ class AcceptanceController extends Controller
|
||||||
* since we want the moment-in-time proof of what the EULA was when they accepted it.
|
* since we want the moment-in-time proof of what the EULA was when they accepted it.
|
||||||
*/
|
*/
|
||||||
$branding_settings = SettingsController::getPDFBranding();
|
$branding_settings = SettingsController::getPDFBranding();
|
||||||
|
|
||||||
|
if (is_null($branding_settings->logo)){
|
||||||
|
$path_logo = "";
|
||||||
|
} else {
|
||||||
|
$path_logo = public_path() . '/uploads/' . $branding_settings->logo;
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'item_tag' => $item->asset_tag,
|
'item_tag' => $item->asset_tag,
|
||||||
'item_model' => $display_model,
|
'item_model' => $display_model,
|
||||||
|
@ -162,7 +169,7 @@ class AcceptanceController extends Controller
|
||||||
'assigned_to' => $assigned_to,
|
'assigned_to' => $assigned_to,
|
||||||
'company_name' => $branding_settings->site_name,
|
'company_name' => $branding_settings->site_name,
|
||||||
'signature' => ($sig_filename) ? storage_path() . '/private_uploads/signatures/' . $sig_filename : null,
|
'signature' => ($sig_filename) ? storage_path() . '/private_uploads/signatures/' . $sig_filename : null,
|
||||||
'logo' => public_path() . '/uploads/' . $branding_settings->logo,
|
'logo' => $path_logo,
|
||||||
'date_settings' => $branding_settings->date_display_format,
|
'date_settings' => $branding_settings->date_display_format,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue