Skip to content

Conversation

@Blackskyliner
Copy link

If an template was empty it threw an error, as fread expects $length to be greater than 0. Patched it with an additional check for actual filesize and fallback to an empty string if file is empty, also skip the processing if $code is empty.

If an template was empty it threw an error, as fread expects $length to be greater than 0. Patched it with an additional check for actual filesize and fallback to an empty string if file is empty, also skip the processing if $code is empty.
@Blackskyliner
Copy link
Author

Argh, duplicates #152 - I should look better before creating Pull requests. But I will leave this open for now, as I don't see the need for the check added by #152. As the file is already empty, why execute PHP safeguard which also only results in an empty page?

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

Successfully merging this pull request may close these issues.

1 participant