summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-24 15:15:35 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-24 15:15:35 +0100
commitad5f1d032fb3204bc1b81891a3231ae8ac47392b (patch)
tree151472e725d2cac2c94f123652ba25b4f0b23442 /system
parenta815dbf595397743dacf4aef2bfbab5d19448797 (diff)
parent34cadee670f79d67942e4d8f87557c1a0b2916bc (diff)
Merge pull request #2028 from tocaibiza/develop
Bug fix - optimize_table() in DB utility class
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_utility.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index a32fd4455..c4140aef3 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -146,7 +146,7 @@ abstract class CI_DB_utility {
if ($query !== FALSE)
{
$query = $query->result_array();
- return current($res);
+ return current($query);
}
return FALSE;