mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
using native adodb functions for quote and db_addslashes:
- qstr() save's one extra call compared to the PEAR function quote() - dont need substr( ,1,-1) for db_addslashes
This commit is contained in:
parent
735f8e4036
commit
822506cec0
@ -280,7 +280,7 @@
|
||||
return False;
|
||||
}
|
||||
// the substring is needed as the string is already in quotes
|
||||
return substr($this->Link_ID->quote($str),1,-1);
|
||||
return $this->Link_ID->addq($str);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -975,7 +975,7 @@
|
||||
case 'timestamp':
|
||||
return $this->Link_ID->DBTimeStamp($value);
|
||||
}
|
||||
return $this->Link_ID->quote($value);
|
||||
return $this->Link_ID->qstr($value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user