Browse Source

Use !empty in the if statement

FusionPBX 2 years ago
parent
commit
343be547e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/classes/domains.php

+ 1 - 1
resources/classes/domains.php

@@ -486,7 +486,7 @@ if (!class_exists('domains')) {
 				}
 				}
 
 
 			//get the domains settings
 			//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
 					//get settings from the database
 					$sql = "select * from v_domain_settings ";
 					$sql = "select * from v_domain_settings ";