diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-02-14 10:45:36 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-02-14 10:45:36 +0100 |
commit | cac407d6399e9325454b48418cf3fce873ce1b14 (patch) | |
tree | e8ccd478fc5574592e3fa1ab0e3b82067325f279 | |
parent | 6ea0e1d3a21713e8c4bf254cb6b2c6209c7284d6 (diff) |
Replace a preg_match() with stripos()
-rw-r--r-- | system/database/drivers/cubrid/cubrid_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/cubrid/cubrid_driver.php b/system/database/drivers/cubrid/cubrid_driver.php index 8d5344af9..147e463ce 100644 --- a/system/database/drivers/cubrid/cubrid_driver.php +++ b/system/database/drivers/cubrid/cubrid_driver.php @@ -66,7 +66,7 @@ class CI_DB_cubrid_driver extends CI_DB { if (preg_match('/^CUBRID:[^:]+(:[0-9][1-9]{0,4})?:[^:]+:[^:]*:[^:]*:(\?.+)?$/', $this->dsn, $matches)) { - if (preg_match('/autocommit=off/', $matches[2], $matches)) + if (stripos($matches[2], 'autocommit=off') !== FALSE) { $this->auto_commit = FALSE; } |