summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-25 17:17:14 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-25 17:17:14 +0200
commit263d2eb0888b971043d8935b40fab7e0b53f4cd8 (patch)
treebf06350b17b4d9daa3fb6b69fc18696348bb6085 /system/database/drivers/pdo
parente61b19f90e23e6b7f51e910b488a37f6f8fb7c93 (diff)
Optimize PDO escape_str()
Diffstat (limited to 'system/database/drivers/pdo')
-rw-r--r--system/database/drivers/pdo/pdo_driver.php2
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);
}