Browse files

Merge pull request #2028 from tocaibiza/develop

Bug fix - optimize_table() in DB utility class
  • Loading branch information...
2 parents a815dbf + 34cadee commit ad5f1d032fb3204bc1b81891a3231ae8ac47392b @narfbg narfbg committed Nov 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/DB_utility.php
View
2 system/database/DB_utility.php
@@ -146,7 +146,7 @@ public function optimize_table($table_name)
if ($query !== FALSE)
{
$query = $query->result_array();
- return current($res);
+ return current($query);
}
return FALSE;

0 comments on commit ad5f1d0

Please sign in to comment.