Updated bash stub, added more checks to hotfix
This commit is contained in:
@ -87,16 +87,25 @@ class Hotfix
|
||||
|
||||
public function getName()
|
||||
{
|
||||
if (!array_key_exists('hotfix', $this->header)) {
|
||||
return "Untitled hotfix";
|
||||
}
|
||||
return $this->header['hotfix'];
|
||||
}
|
||||
|
||||
public function getInfo()
|
||||
{
|
||||
if (!array_key_exists('info', $this->header)) {
|
||||
return "No additional information";
|
||||
}
|
||||
return $this->header['info'];
|
||||
}
|
||||
|
||||
public function getAuthor()
|
||||
{
|
||||
if (!array_key_exists('author', $this->header)) {
|
||||
return "Unknown author";
|
||||
}
|
||||
return $this->header['author'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user