commit | 6a450cf1b6440543b14379abacd6308fe51ea4f3 | [log] [tgz] |
---|---|---|
author | Timothy Warren <tim@timshomepage.net> | Tue Aug 23 12:46:11 2011 -0400 |
committer | Timothy Warren <tim@timshomepage.net> | Tue Aug 23 12:46:11 2011 -0400 |
tree | 4019334d3a59592aea9e90fd319028734e46b352 | |
parent | ab347586ef289e960ab7cfad32574e526cdcce0b [diff] [blame] |
Fixed db->close() and db->free_result() functions
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php index c386586..5e136f5 100644 --- a/system/database/drivers/pdo/pdo_result.php +++ b/system/database/drivers/pdo/pdo_result.php
@@ -111,9 +111,8 @@ */ 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; } }