From 274cb6a59213b35dc17b4329482f0a8088a1970e Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 16 Sep 2011 08:06:09 +0000 Subject: - Fix is_a() usage git-svn-id: https://svn.roundcube.net/trunk@5222 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/lib/PEAR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/lib/PEAR.php') diff --git a/roundcubemail/program/lib/PEAR.php b/roundcubemail/program/lib/PEAR.php index a792d9f57..8cc715204 100644 --- a/roundcubemail/program/lib/PEAR.php +++ b/roundcubemail/program/lib/PEAR.php @@ -265,7 +265,7 @@ class PEAR */ function isError($data, $code = null) { - if (!is_a($data, 'PEAR_Error')) { + if (!is_object($data) || !is_a($data, 'PEAR_Error')) { return false; } -- cgit v1.2.3