diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 60c714d4..7b69eeb0 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -320,8 +320,10 @@ class MicropubClientController extends Controller } $syndicateTo = []; $data = json_decode($syndicationTargets, true); - foreach ($syndicateTo['syndicate-to'] as $syn) { - $syndicateTo[] = $syn['uid']; + if (array_key_exists('syndicate-to', $data)) { + foreach ($data['syndicate-to'] as $syn) { + $syndicateTo[] = $syn['uid']; + } } if (count($syndicateTo) > 0) { return $syndicateTo; diff --git a/changelog.md b/changelog.md index 1ea31648..338bd998 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.8.1 (2016-07-13) + - Fix anh issue in the syndication target parsing method + ## Version 0.0.8 (2016-07-13) - Allow new notes to be made by a JSON request from a micropub client - Add DependencyCI support