make the use of adodb the default in the quote() and db_addslashes() functions, too

This commit is contained in:
Carsten Wolff 2004-04-11 09:03:56 +00:00
parent a7666da37f
commit d5026a9f75

View File

@ -266,7 +266,8 @@
return '';
}
// 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'])
{
return addslashes($str);
}
@ -855,7 +856,8 @@
return (int) $value;
}
// 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'])
{
return "'" . (!isset($value) || $value == '' ? '' : addslashes($value)) . "'";
}