Bug fix - optimize_table() in DB utility class
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index a32fd44..c4140ae 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -146,7 +146,7 @@
 		if ($query !== FALSE)
 		{
 			$query = $query->result_array();
-			return current($res);
+			return current($query);
 		}
 
 		return FALSE;