FreePBX / framework

This module provides a facility to install bug fixes to the framework code that is not otherwise housed in a module
http://www.freepbx.org
GNU General Public License v3.0
64 stars 64 forks source link

Use empty() to avoid undefined var error during bootstrap #170

Closed volkjohn closed 3 weeks ago

volkjohn commented 1 month ago

On a FreePBX 17 PHP 8.2 system, I was getting an undefined variable (username) error on line 21 of gui_auth.php when called by bootstrap.php.

Using empty() is a safer way to check for the existence of the username and password variable.

I'm running this in production with no issue.

sangoma-oss-cla[bot] commented 1 month ago

CLA assistant check
All committers have signed the CLA.