WaLLy3K / Pi-hole-Block-Page

A "Website Blocked" page to go with https://pi-hole.net
MIT License
120 stars 12 forks source link

PHP <= 5.4 compatibility #19

Closed deseven closed 7 years ago

deseven commented 7 years ago

Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error.

WaLLy3K commented 7 years ago

Thanks for the heads up, as well as the fix :smile:

deseven commented 7 years ago

You may want to mention php requirements somewhere. With this small fix i successfully managed to run PHBP on PHP 5.4, but older versions can be affected with other stuff.