From a6812a39edd142a456163e66d374d2bdfcf7c423 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 30 Jan 2013 09:33:52 +0000 Subject: [PATCH] silence error log on folderExists when called with empty folder, unless the check is forced --- felamimail/inc/class.felamimail_bo.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/felamimail/inc/class.felamimail_bo.inc.php b/felamimail/inc/class.felamimail_bo.inc.php index 3d286bc056..80cdf3c708 100644 --- a/felamimail/inc/class.felamimail_bo.inc.php +++ b/felamimail/inc/class.felamimail_bo.inc.php @@ -3763,7 +3763,8 @@ class felamimail_bo $forceCheck = $_forceCheck; if (empty($_folder)) { - error_log(__METHOD__.__LINE__.' Called with empty Folder:'.$_folder.function_backtrace()); + // this error is more or less without significance, unless we force the check + if ($_forceCheck===true) error_log(__METHOD__.__LINE__.' Called with empty Folder:'.$_folder.function_backtrace()); return false; } // reduce traffic within the Instance per User; Expire every 5 Minutes