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

Bitwise Operator in TwigExtension.php Causing error with exifFunc #2518

Closed
bperry11 opened this issue May 24, 2019 · 1 comment
Closed

Bitwise Operator in TwigExtension.php Causing error with exifFunc #2518

bperry11 opened this issue May 24, 2019 · 1 comment
Labels

Comments

@bperry11
Copy link

exifFunc throws "non-numeric value" error. Seems to be caused by accidental '&' instead of '&&' in this if statement:

if ($image & file_exists($image) && $this->config->get('system.media.auto_metadata_exif') && $exif_reader)

Changing the first '&' to '&&' stopped the error and the function worked properly.

if ($image & file_exists($image) && $this->config->get('system.media.auto_metadata_exif') && $exif_reader) {

@rhukster rhukster added the bug label May 26, 2019
@rhukster
Copy link
Member

It looks like that might of been a typo. Fixing

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

No branches or pull requests

2 participants