mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 21:49:28 +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
1f69400c71
commit
0f34f340ab
@ -281,7 +281,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -969,7 +969,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