summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-09 17:59:54 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-09 17:59:54 +0200
commitef944f6bf77d41f3bdd0a1cdfe584db20ba7dc99 (patch)
treedadf9064f6df2940dfa08d53a503079c2b717fca /system/database
parenta593c69de4ea125c096f611c78dd0839489e7ebd (diff)
parent6600b6965d99e53408356f04f69703396c9c7d5f (diff)
Merge pull request #1450 from rafaelrq/patch-1
Return $this when values ($key OR $values) is NULL
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_query_builder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 3ed556212..5d0a2ae2c 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -547,7 +547,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
{
if ($key === NULL OR $values === NULL)
{
- return;
+ return $this;
}
$type = $this->_group_get_type($type);