diff options
| author | 2016-08-31 21:47:12 +0200 | |
|---|---|---|
| committer | 2016-08-31 21:47:12 +0200 | |
| commit | f66be86e41d89214688a28243b412ffa43ce500d (patch) | |
| tree | f3e22b817d936a076d8868b4586c86c0002982e9 /lib/Minz/ModelPdo.php | |
| parent | 0f1bc956d4f301e61618cff2dd5bfcac1532067f (diff) | |
Quoted upper-cases instead of string replace
Diffstat (limited to 'lib/Minz/ModelPdo.php')
| -rw-r--r-- | lib/Minz/ModelPdo.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Minz/ModelPdo.php b/lib/Minz/ModelPdo.php index 93a22fc3d..78b44ea7f 100644 --- a/lib/Minz/ModelPdo.php +++ b/lib/Minz/ModelPdo.php @@ -156,9 +156,6 @@ class MinzPDOMSQLite extends MinzPDO { class MinzPDOPGSQL extends MinzPDO { protected function compatibility($statement) { - return str_replace( - array('`', 'lastUpdate', 'pathEntries', 'httpAuth', 'cache_nbEntries', 'cache_nbUnreads', 'lastSeen'), - array('"', '"lastUpdate"', '"pathEntries"', '"httpAuth"', '"cache_nbEntries"', '"cache_nbUnreads"', '"lastSeen"'), - $statement); + return str_replace('`', '"', $statement); } } |
