diff options
author | alecpl <alec@alec.pl> | 2011-09-16 08:06:09 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-09-16 08:06:09 +0000 |
commit | 8c124b9ea8ae5a1793c61ccb4c4e5c0dd0f77787 (patch) | |
tree | 72230a887c89be2c68a386e72b017441c66c0e96 /program/lib/PEAR.php | |
parent | 699a25a822276c12a0aa9253dd6a397c1b09899b (diff) |
- Fix is_a() usage
Diffstat (limited to 'program/lib/PEAR.php')
-rw-r--r-- | program/lib/PEAR.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/PEAR.php b/program/lib/PEAR.php index a792d9f57..8cc715204 100644 --- a/program/lib/PEAR.php +++ b/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; } |