mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fix to automatically connect before calling db_addslashes, needed for setup->languages (with ADOdb enabled)
This commit is contained in:
parent
6909e7241d
commit
a1bb219315
@ -216,6 +216,10 @@
|
||||
{
|
||||
return addslashes($str);
|
||||
}
|
||||
if (!$this->Link_ID)
|
||||
{
|
||||
$this->connect();
|
||||
}
|
||||
// the substring is needed as the string is already in quotes
|
||||
return substr($this->Link_ID->quote($str),1,-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user