mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
make the use of adodb the default in the quote() and db_addslashes() functions, too
This commit is contained in:
parent
a7666da37f
commit
d5026a9f75
@ -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)) . "'";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user