mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
fix: error in funding composer.json
block bricks frontend (#3239)
* fix: error in funding `composer.json` block bricks frontend * simplify * Apply fixes from StyleCI [ci skip] [skip ci] Co-authored-by: luceos <luceos@users.noreply.github.com>
This commit is contained in:
parent
53c3d13047
commit
8fac735be0
|
@ -436,8 +436,8 @@ class Extension implements Arrayable
|
|||
$links['support'] = "mailto:$supportEmail";
|
||||
}
|
||||
|
||||
if (($funding = $this->composerJsonAttribute('funding')) && count($funding)) {
|
||||
$links['donate'] = $funding[0]['url'];
|
||||
if (($funding = $this->composerJsonAttribute('funding')) && is_array($funding) && ($fundingUrl = Arr::get($funding, '0.url'))) {
|
||||
$links['donate'] = $fundingUrl;
|
||||
}
|
||||
|
||||
$links['authors'] = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user