From b8e6ba1908a9d2e9c5f22f8c4cc532d06e685ed0 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 15 Feb 2012 03:29:33 -0500
Subject: [PATCH] Backported r5878 to 0.7 release branch
---
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 a792d9f..8cc7152 100644
--- a/program/lib/PEAR.php
+++ b/program/lib/PEAR.php
@@ -265,7 +265,7 @@
*/
function isError($data, $code = null)
{
- if (!is_a($data, 'PEAR_Error')) {
+ if (!is_object($data) || !is_a($data, 'PEAR_Error')) {
return false;
}
--
Gitblit v1.9.1