From a8d90bd175b9d624c8c1820c26e04b7a6f8a3721 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 13 Mar 2012 04:59:07 -0400
Subject: [PATCH] - Fix counting of messages search results (on refresh when search filter is in use)

---
 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