Browse Source

Change app_defaults so it uses the new database_driver field.

Mark Crane 13 years ago
parent
commit
428ae7cefd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/databases/app_defaults.php

+ 1 - 1
core/databases/app_defaults.php

@@ -51,7 +51,7 @@ if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
 
 	//get the odbc information
 		$sql = "select count(*) as num_rows from v_databases ";
-		$sql .= "where database_type = 'odbc' ";
+		$sql .= "where database_driver = 'odbc' ";
 		if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
 		$prep_statement = $db->prepare($sql);
 		if ($prep_statement) {