diff options
author | Andrey Andreev <narf@devilix.net> | 2021-12-20 15:30:33 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2021-12-20 15:30:33 +0100 |
commit | a003ba25a58b5ddeae04225195b0aab1a5c29062 (patch) | |
tree | aa7e590e0cbf9c9d22545144846a8354a4d222f4 /system/database/drivers/postgre/postgre_result.php | |
parent | bf867137771c18f263bfab54cce258c27b91d2e8 (diff) |
PHP 8.1 update to postgre database driver
Diffstat (limited to 'system/database/drivers/postgre/postgre_result.php')
-rw-r--r-- | system/database/drivers/postgre/postgre_result.php | 2 |
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; |