field name is singular domain_name

This commit is contained in:
FusionPBX
2023-05-21 17:13:11 -06:00
committed by GitHub
parent 044932163c
commit 54ce2b15c8

View File

@@ -291,7 +291,7 @@ if ($db_type == "odbc") {
//get the domains from the database
$database = new database;
if ($database->table_exists('v_domains')) {
$sql = "select * from v_domains order by domain_names asc;";
$sql = "select * from v_domains order by domain_name asc;";
$prep_statement = $db->prepare($sql);
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);