1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16740] Use is_resource() to check whether connect id is still valid

PHPBB3-16740
This commit is contained in:
Marc Alexander
2021-03-31 21:22:14 +02:00
parent e8afa29013
commit 4ce8224c2c

View File

@@ -467,7 +467,7 @@ class postgres extends \phpbb\db\driver\driver
function _sql_close()
{
// Released resources are already closed, return true in this case
if (get_resource_type($this->db_connect_id) === 'Unknown')
if (!is_resource($this->db_connect_id))
{
return true;
}