mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Fixed crash when executing command /version with multiple authors declared in 'author' (#3940)
closes #3902
This commit is contained in:
parent
215bac8dd7
commit
bac986d0b2
@ -156,7 +156,11 @@ class PluginDescription{
|
||||
}
|
||||
$this->authors = [];
|
||||
if(isset($plugin["author"])){
|
||||
$this->authors[] = $plugin["author"];
|
||||
if(is_array($plugin["author"])){
|
||||
$this->authors = $plugin["author"];
|
||||
}else{
|
||||
$this->authors[] = $plugin["author"];
|
||||
}
|
||||
}
|
||||
if(isset($plugin["authors"])){
|
||||
foreach($plugin["authors"] as $author){
|
||||
|
Loading…
x
Reference in New Issue
Block a user