marcelloc / Unofficial-pfSense-packages

Unofficial packages for pfSense software
125 stars 71 forks source link

check variables before use for count and sizeof #62

Closed alitelli closed 5 years ago

alitelli commented 5 years ago

Crash report begins. Anonymous machine information:

amd64 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 da872a8c2a5(RELENG_2_5) pfSense

Crash report details:

PHP Errors: [26-May-2019 05:04:16 Etc/GMT-3] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/pkg/e2guardian.inc on line 1412 [26-May-2019 05:04:16 Etc/GMT-3] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/pkg/e2guardian.inc on line 1413

No FreeBSD crash data found.

is_countable -> https://www.php.net/manual/tr/function.is-countable.php with php 7