Properly check if FTSEvent has an argument set
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
6ac8cafd46
commit
516b15d3a1
@@ -42,7 +42,7 @@ class FTSEvent extends Event {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getArgument($key) {
|
public function getArgument($key) {
|
||||||
if ($this->hasArgument($key)) {
|
if (isset($this->arguments[$key])) {
|
||||||
return $this->arguments[$key];
|
return $this->arguments[$key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user