projects
/
SonOfLokstallBot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109da77
)
Fix type error when reading price from emails
author
Cameron Ball
<cameron@cameron1729.xyz>
Tue, 8 Jan 2019 08:10:57 +0000
(16:10 +0800)
committer
Cameron Ball
<cameron@cameron1729.xyz>
Tue, 8 Jan 2019 08:10:57 +0000
(16:10 +0800)
src/common.php
patch
|
blob
|
history
diff --git
a/src/common.php
b/src/common.php
index
7a15a6c
..
ab0dd8d
100644
(file)
--- 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,