summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-09-16 18:31:37 +0200
committerTimothy Warren <tim@timshomepage.net>2011-09-16 18:31:37 +0200
commit5fc36d8c9dc0bd5d41ed7dea36f999c6e07e1615 (patch)
tree3cf5a90e6ffc7f35b510c2d532f55b0e73a37432 /system
parentd223d112d9353515b88d3e01c3da0b4f1e656da8 (diff)
Merged from upstream, fixed a logic error
Diffstat (limited to 'system')
-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 ba02605b1..c5a215b82 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -642,7 +642,7 @@ class CI_DB_pdo_driver extends CI_DB {
*/
function _limit($sql, $limit, $offset)
{
- if(strpos('cubrid', $this->hostname) !== FALSE || strpos('sqlite', $this->hostname) !== FALSE)
+ if(strpos($this->hostname, 'cubrid') !== FALSE || strpos($this->hostname, 'sqlite') !== FALSE)
{
if ($offset == 0)
{