fix to automatically connect before calling db_addslashes, needed for setup->languages (with ADOdb enabled)

This commit is contained in:
Ralf Becker 2003-10-20 19:02:32 +00:00
parent 6909e7241d
commit a1bb219315

View File

@ -216,6 +216,10 @@
{ {
return addslashes($str); return addslashes($str);
} }
if (!$this->Link_ID)
{
$this->connect();
}
// the substring is needed as the string is already in quotes // the substring is needed as the string is already in quotes
return substr($this->Link_ID->quote($str),1,-1); return substr($this->Link_ID->quote($str),1,-1);
} }