Skip to content
Snippets Groups Projects
Commit 76e2d81e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix error on empty email data

parent 165e4a33
Branches main
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
* ---------------------------------------------------------------------- * ----------------------------------------------------------------------
* 2024-10-08 v0.1 initial version * 2024-10-08 v0.1 initial version
* 2024-10-16 v0.2 detect parse error when reading email data * 2024-10-16 v0.2 detect parse error when reading email data
* 2025-05-27 v0.3 fix error on empty email data
* ======================================================================= * =======================================================================
*/ */
...@@ -95,6 +96,7 @@ class emailcatcher ...@@ -95,6 +96,7 @@ class emailcatcher
if(!file_exists($this->sMailData)){ if(!file_exists($this->sMailData)){
return []; return [];
} }
$aEmails=[];
foreach(file($this->sMailData) as $line) { foreach(file($this->sMailData) as $line) {
if (empty(trim($line))) { if (empty(trim($line))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment