summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Bilbie <alex@alexbilbie.com>2012-06-02 20:17:52 +0200
committerAlex Bilbie <alex@alexbilbie.com>2012-06-02 20:17:52 +0200
commitecf7d93acbc74bf07a809c2a1577527562509e42 (patch)
treef2df879a4358b9e5a508f07d00c1838f5cd2fa21
parent32d3fa66434895c02fc1cb21c20bf834d4b38d13 (diff)
Fixed bug in MySQL driver introduced in 48a2baf0e288accd206f5da5031d29076e130792
-rw-r--r--system/database/drivers/mysql/mysql_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 41e86f315..fc9bbdc4e 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -485,7 +485,7 @@ class CI_DB_mysql_driver extends CI_DB {
*/
protected function _limit($sql, $limit, $offset)
{
- return $sql.' LIMIT '.($offset === 0 ? '' : $offset.', ').$limit;
+ return $sql.' LIMIT '.($offset == 0 ? '' : $offset.', ').$limit;
}
// --------------------------------------------------------------------