mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ class postgres extends \phpbb\db\driver\driver
|
||||||
function _sql_close()
|
function _sql_close()
|
||||||
{
|
{
|
||||||
// Released resources are already closed, return true in this case
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue