mirror of
https://github.com/flarum/core.git
synced 2025-07-15 22:06:24 +02: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:
@ -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'] = [];
|
||||
|
Reference in New Issue
Block a user