Fixed result array fetching
diff --git a/system/database/drivers/interbase/interbase_result.php b/system/database/drivers/interbase/interbase_result.php
index c5608d9..c7b40d2 100644
--- a/system/database/drivers/interbase/interbase_result.php
+++ b/system/database/drivers/interbase/interbase_result.php
@@ -53,7 +53,7 @@
}
//Get the results so that you can get an accurate rowcount
- $this->result_array();
+ $this->result();
return $this->num_rows;
}
@@ -231,6 +231,14 @@
{
return $this->result_array;
}
+
+ // Since the object and array are really similar, just case
+ // the result object to an array if need be
+ if(count($this->result_object) > 0)
+ {
+ $this->result_array = (array)$this->result_object;
+ return $this->result_array;
+ }
// In the event that query caching is on the result_id variable
// will return FALSE since there isn't a valid SQL resource so