diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-16 08:06:09 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-16 08:06:09 +0000 |
| commit | 274cb6a59213b35dc17b4329482f0a8088a1970e (patch) | |
| tree | ee49d84cd76ff324d0cc862998c61c1f74bf9f7a /roundcubemail/program/lib/PEAR.php | |
| parent | 47653234b431c87d721eb7a20b65803dfb033066 (diff) | |
- Fix is_a() usage
git-svn-id: https://svn.roundcube.net/trunk@5222 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/PEAR.php')
| -rw-r--r-- | roundcubemail/program/lib/PEAR.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
