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:
parent
e8afa29013
commit
4ce8224c2c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user