From 2238ea9dbbc52d8bc81502abbdb9b4fdb0564944 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Mar 2004 22:41:55 +0000 Subject: [PATCH] makeing ADOdb the configuration default: unless you explicitly set $GLOBALS['phpgw_info']['server']['use_adodb'] = False; in your header.inc.php, eGW uses ADOdb --- phpgwapi/inc/class.db.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.db.inc.php b/phpgwapi/inc/class.db.inc.php index 041b0ff91a..6767acd58e 100644 --- a/phpgwapi/inc/class.db.inc.php +++ b/phpgwapi/inc/class.db.inc.php @@ -13,7 +13,7 @@ /* * Database abstraction library * - * This allows eGroupWare to use multiple database backends via ADOdb + * This allows eGroupWare to use multiple database backends via ADOdb 4.20 * * @package phpgwapi * @subpackage db @@ -25,7 +25,7 @@ { $GLOBALS['phpgw_info']['server']['db_type'] = 'mysql'; } - if (@$GLOBALS['phpgw_info']['server']['use_adodb']) + if (!isset($GLOBALS['phpgw_info']['server']['use_adodb']) || $GLOBALS['phpgw_info']['server']['use_adodb']) { include_once('adodb/adodb.inc.php'); } @@ -864,7 +864,7 @@ } // REMOVE-IF-ONLY-ADODB - if (!@$GLOBALS['phpgw_info']['server']['use_adodb']) + if (isset($GLOBALS['phpgw_info']['server']['use_adodb']) && !$GLOBALS['phpgw_info']['server']['use_adodb']) { include(PHPGW_API_INC.'/class.db_'.$GLOBALS['phpgw_info']['server']['db_type'].'.inc.php'); }