diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-16 18:18:48 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-16 18:18:48 +0200 |
commit | 76d3b4714564d9c68855fca95ae7e09933287c31 (patch) | |
tree | 7b8c7586c3ae20aafcf5fc7acd42c1535e17c96d | |
parent | 639a825b2ebdb16fe6e9725bde00f7baa31ae434 (diff) |
Workaround possible PHP Fatal error: Class 'PEAR' not found
-rw-r--r-- | program/include/rcube_mdb2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 26e5e974a..67785bfcb 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -197,7 +197,7 @@ class rcube_mdb2 */ function is_connected() { - return PEAR::isError($this->db_handle) ? false : $this->db_connected; + return is_a($this->db_handle, 'PEAR_Error') ? false : $this->db_connected; } |