From: Duck (Jakob Munih) Date: Sun, 8 Mar 2009 11:37:31 +0000 (+0100) Subject: Catch admin errors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3a39b266f5c5209ba9e44f56590f0dccc5947bd3;p=horde.git Catch admin errors --- diff --git a/folks/lib/Report/letter.php b/folks/lib/Report/letter.php index ed9a21d37..759eaeb6a 100644 --- a/folks/lib/Report/letter.php +++ b/folks/lib/Report/letter.php @@ -19,6 +19,9 @@ class Folks_Report_letter extends Folks_Report { $admins = array($users); } elseif (empty($GLOBALS['conf']['report_content']['users'])) { $admins = $this->getAdmins(); + if ($admins instanceof PEAR_Error) { + return $admins; + } if (empty($admins)) { return true; }