summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/pdo_result.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-08-23 18:46:11 +0200
committerTimothy Warren <tim@timshomepage.net>2011-08-23 18:46:11 +0200
commit6a450cf1b6440543b14379abacd6308fe51ea4f3 (patch)
tree4019334d3a59592aea9e90fd319028734e46b352 /system/database/drivers/pdo/pdo_result.php
parentab347586ef289e960ab7cfad32574e526cdcce0b (diff)
Fixed db->close() and db->free_result() functions
Diffstat (limited to 'system/database/drivers/pdo/pdo_result.php')
-rw-r--r--system/database/drivers/pdo/pdo_result.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php
index c38658626..5e136f581 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -111,9 +111,8 @@ class CI_DB_pdo_result extends CI_DB_result {
*/
function free_result()
{
- if (is_resource($this->result_id))
+ if (is_object($this->result_id))
{
- pdo_free_result($this->result_id);
$this->result_id = FALSE;
}
}