aboutsummaryrefslogtreecommitdiff
path: root/mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'mail.php')
-rw-r--r--mail.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail.php b/mail.php
index cb09842..c29f486 100644
--- a/mail.php
+++ b/mail.php
@@ -186,8 +186,9 @@ function mail_parse_message ($body,$prefill_info=[])
} else {
$info['start_date']=$info['end_date']=$val;
}
- } else if (levenshtein ($key,'Keywords') < 2)
- $info['keywords']=array_map ('trim',explode (';',$val));
+ } else if (levenshtein ($key,'Keywords') < 2){
+ $info['keywords']=array_filter (array_map ('trim',explode (';',$val)),'strlen');
+ }
else
$warnings[]='Unknown key '.$key;
}