diff options
Diffstat (limited to 'drivers/adodb-postgres7.inc.php')
| -rw-r--r-- | drivers/adodb-postgres7.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/adodb-postgres7.inc.php b/drivers/adodb-postgres7.inc.php index 2cfe694d..38762bf3 100644 --- a/drivers/adodb-postgres7.inc.php +++ b/drivers/adodb-postgres7.inc.php @@ -280,7 +280,9 @@ class ADODB_postgres7 extends ADODB_postgres64 { */ function getCharSet() { - //we will use ADO's builtin property charSet + if (!$this->_connectionID) { + return false; + } $this->charSet = @pg_client_encoding($this->_connectionID); if (!$this->charSet) { return false; |
