summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre/postgre_result.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/drivers/postgre/postgre_result.php')
-rw-r--r--system/database/drivers/postgre/postgre_result.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/postgre/postgre_result.php b/system/database/drivers/postgre/postgre_result.php
index a0a628f0a..d977a60e3 100644
--- a/system/database/drivers/postgre/postgre_result.php
+++ b/system/database/drivers/postgre/postgre_result.php
@@ -126,7 +126,7 @@ class CI_DB_postgre_result extends CI_DB_result {
*/
public function free_result()
{
- if (is_resource($this->result_id))
+ if ($this->result_id !== FALSE)
{
pg_free_result($this->result_id);
$this->result_id = FALSE;