Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandled exception on specific DXF file #22

Closed
elerocks opened this issue Apr 27, 2022 · 1 comment
Closed

unhandled exception on specific DXF file #22

elerocks opened this issue Apr 27, 2022 · 1 comment

Comments

@elerocks
Copy link

elerocks commented Apr 27, 2022

Problem
Trying to read attached file will cause

Undefined array key 39
at
/project/vendor/enjoping/dxfighter/DXFighter.php

(github does not allow uploading dxf files, so the uploaded file is regular dxf with manually changed extension to svg)

3D_20220420_100953

Solution
change
$thickness = $data[39] ? $data[39] : 0;
to
$thickness = isset($data[39]) ? $data[39] : 0;

Additional details
Tested on PHP 8.1

@elerocks
Copy link
Author

I've just noticed it is duplicate of #18 , so closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant