From 3a39b266f5c5209ba9e44f56590f0dccc5947bd3 Mon Sep 17 00:00:00 2001 From: "Duck (Jakob Munih)" Date: Sun, 8 Mar 2009 12:37:31 +0100 Subject: [PATCH] Catch admin errors --- folks/lib/Report/letter.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.11.0