summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorDimitar <dimitar@bukisa.com>2012-11-24 12:13:07 +0100
committerDimitar <dimitar@bukisa.com>2012-11-24 12:13:07 +0100
commit34cadee670f79d67942e4d8f87557c1a0b2916bc (patch)
tree151472e725d2cac2c94f123652ba25b4f0b23442 /system/database
parenta815dbf595397743dacf4aef2bfbab5d19448797 (diff)
Bug fix - optimize_table() in DB utility class
Diffstat (limited to 'system/database')
-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;