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

PHP 7.4 Warning: implode(): Invalid arguments passed in \fpdm\fpdm->get_buffer() #47

Open
nbao opened this issue Jun 27, 2021 · 0 comments

Comments

@nbao
Copy link

nbao commented Jun 27, 2021

i got some warning php in fpdm.php line 550
$buffer=implode("\n",$this->pdf_entries);
sometime $this->pdf_entries is null it is not array
suggestion $buffer=implode("\n",!empty($this->pdf_entries) ? $this->pdf_entries : []);

another warning php in fpdm.php line 1627
Warning: count(): Parameter must be an array or an object that implements Countable in \fpdm\fpdm->parsePDFEntries()
$CountLines = count($entries);
i suggest $CountLines = !empty($entries) ? count($entries) : 0;

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