diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-25 17:17:14 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-25 17:17:14 +0200 |
commit | 263d2eb0888b971043d8935b40fab7e0b53f4cd8 (patch) | |
tree | bf06350b17b4d9daa3fb6b69fc18696348bb6085 /system/database/drivers/pdo | |
parent | e61b19f90e23e6b7f51e910b488a37f6f8fb7c93 (diff) |
Optimize PDO escape_str()
Diffstat (limited to 'system/database/drivers/pdo')
-rw-r--r-- | system/database/drivers/pdo/pdo_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php index 3197e7506..d18720ed2 100644 --- a/system/database/drivers/pdo/pdo_driver.php +++ b/system/database/drivers/pdo/pdo_driver.php @@ -264,7 +264,7 @@ class CI_DB_pdo_driver extends CI_DB { $str = $this->conn_id->quote($str); // If there are duplicated quotes, trim them away - if (strpos($str, "'") === 0) + if ($str[0] === "'") { $str = substr($str, 1, -1); } |