Use !empty in the if statement

This commit is contained in:
FusionPBX 2023-05-12 20:24:39 -06:00 committed by GitHub
parent e9839e3b30
commit 44a46d491b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ if (!class_exists('domains')) {
}
//get the domains settings
if (is_uuid($_SESSION["domain_uuid"])) {
if (!empty($_SESSION["domain_uuid"]) && is_uuid($_SESSION["domain_uuid"])) {
//get settings from the database
$sql = "select * from v_domain_settings ";