Skip to content

Commit b394355

Browse files
committed
fixed issue with email recipients it was an ID
1 parent 7d53048 commit b394355

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
## [1.0.6] - 2018-07-17
6+
### Fixed
7+
- Issue with email recipients it was an ID
8+
59
## [1.0.5] - 2018-07-12
610
### Fixed
711
- Issue with publish date not saving correctly in the blog.
@@ -27,7 +31,8 @@
2731
- Separated Dappurware from the framework.
2832

2933

30-
[Unreleased]: https://github.com/dappur/dappurware/compare/v1.0.5...HEAD
34+
[Unreleased]: https://github.com/dappur/dappurware/compare/v1.0.6...HEAD
35+
[1.0.6]: https://github.com/dappur/dappurware/compare/v1.0.5...v1.0.6
3136
[1.0.5]: https://github.com/dappur/dappurware/compare/v1.0.4...v1.0.5
3237
[1.0.4]: https://github.com/dappur/dappurware/compare/v1.0.3...v1.0.4
3338
[1.0.3]: https://github.com/dappur/dappurware/compare/v1.0.2...v1.0.3

app/src/Dappurware/Email.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ public function sendEmail(array $sendTo, $subject, $html, $plainText)
346346

347347
if (!$sendEmail) {
348348
$output['results']['errors'][] = array("email" => $userTemp->email, "error" => $result['error']);
349-
}
350-
349+
}
351350
}
352351
}
353352

@@ -392,11 +391,9 @@ private function parseRecipients(array $sendTo)
392391
$output = array();
393392
$output['users'] = array();
394393
foreach ($sendTo as $value) {
395-
if (is_int($value)) {
396-
// If int, get user email
397-
if ($this->auth->findById($value)) {
398-
$output['users'][] = $value;
399-
}
394+
// If int, get user email
395+
if ($this->auth->findById($value)) {
396+
$output['users'][] = $value;
400397
}
401398

402399
if (filter_var($value, FILTER_VALIDATE_EMAIL)) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dappur/dappurware",
33
"description": "Support package for the Dappur Framework",
44
"keywords": ["dappur", "dappurware", "framework"],
5-
"version": "1.0.5",
5+
"version": "1.0.6",
66
"homepage": "https://github.com/dappur/dappurware",
77
"license": "MIT",
88
"authors": [

0 commit comments

Comments
 (0)