summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-04-23 13:26:49 +0200
committerAndrey Andreev <narf@devilix.net>2018-04-23 13:27:35 +0200
commitb070d923fee349b36c16010da3ff3c0222dddec3 (patch)
tree07ee9fa53511522e1fcacbc087c9689df1595bc6 /system/database/DB_driver.php
parentd85c048f076246dc30f1d8ee0270c6b95ee25ba5 (diff)
[ci skip] Merge pull request #5471 from toonitw/patch-1
The value of limit can be zero
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 059849771..f8956f069 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1528,7 +1528,7 @@ abstract class CI_DB_driver {
return 'UPDATE '.$table.' SET '.implode(', ', $valstr)
.$this->_compile_wh('qb_where')
.$this->_compile_order_by()
- .($this->qb_limit ? ' LIMIT '.$this->qb_limit : '');
+ .($this->qb_limit !== FALSE ? ' LIMIT '.$this->qb_limit : '');
}
// --------------------------------------------------------------------