From 55a4ef4d32a67661908ef1a584871741d0b100df Mon Sep 17 00:00:00 2001 From: Banana Date: Mon, 11 Sep 2023 11:45:45 +0200 Subject: [PATCH] update simple-imag class --- webroot/lib/simple-imap.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webroot/lib/simple-imap.class.php b/webroot/lib/simple-imap.class.php index b85a646..34d793c 100644 --- a/webroot/lib/simple-imap.class.php +++ b/webroot/lib/simple-imap.class.php @@ -126,8 +126,8 @@ class SimpleImap { } # log messages processed to all messages - error_log("INFO Read ".$messagecount." messages"); - error_log("INFO Processed ".$processedmessagescount." messages"); + Summoner::sysLog("INFO Read ".$messagecount." messages"); + Summoner::sysLog("INFO Processed ".$processedmessagescount." messages"); return $ret; @@ -160,7 +160,7 @@ class SimpleImap { echo $val->attributes . "
\n"; } } else { - error_log("ERROR imap_getmailboxes failed: ".var_export(imap_last_error())); + Summoner::sysLog("ERROR imap_getmailboxes failed: ".var_export(imap_last_error())); } } } -- 2.39.5