From: Cameron Ball Date: Tue, 8 Jan 2019 08:10:57 +0000 (+0800) Subject: Fix type error when reading price from emails X-Git-Url: http://git.cameron1729.xyz/?p=SonOfLokstallBot.git;a=commitdiff_plain;h=14bb5918bec043ed421168e938987392c2bbb579 Fix type error when reading price from emails --- diff --git a/src/common.php b/src/common.php index 7a15a6c..ab0dd8d 100644 --- a/src/common.php +++ b/src/common.php @@ -501,7 +501,7 @@ function getMessagesFromInbox($inbox, array $rules, $unseenOnly = true) { 'id' => substr(md5($body), 0, 6), 'uid' => $emails[0], 'due' => new DateTimeImmutable($dateTransform($matches['due'])), - 'amount' => $matches['amount'] + 'amount' => (float)$matches['amount'] ]; }, $rules,