From 54ce2b15c8f4272501dc5e60b22e0b196bc53f81 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 21 May 2023 17:13:11 -0600 Subject: [PATCH] field name is singular domain_name --- resources/pdo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/pdo.php b/resources/pdo.php index 8b81c24adb..b05a537f31 100644 --- a/resources/pdo.php +++ b/resources/pdo.php @@ -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);