Default for when theres no syndicate to key

This commit is contained in:
Jonny Barnes 2017-02-24 11:36:14 +00:00
parent 83f5d6eb82
commit 2bdfa7b96c

View file

@ -335,6 +335,8 @@ class MicropubClientController extends Controller
'name' => $syn['name'],
];
}
} else {
$syndicateTo[] = ['target' => 'http://example.org', 'name' => 'Joe Bloggs on Example'];
}
if (count($syndicateTo) > 0) {
return $syndicateTo;