1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-15 05:14:28 +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
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

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;
}