summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-16 18:18:48 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-16 18:18:48 +0200
commit76d3b4714564d9c68855fca95ae7e09933287c31 (patch)
tree7b8c7586c3ae20aafcf5fc7acd42c1535e17c96d
parent639a825b2ebdb16fe6e9725bde00f7baa31ae434 (diff)
Workaround possible PHP Fatal error: Class 'PEAR' not found
-rw-r--r--program/include/rcube_mdb2.php2
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;
}