Skip to content

Commit

Permalink
Update XMLStream.php
Browse files Browse the repository at this point in the history
Fix Fatal error: Function name must be a string
  • Loading branch information
ViPErCZ committed Aug 10, 2017
1 parent 5f40fb3 commit f8b4997
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion XMPPHP/XMLStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ public function event($name, $payload = null) {
if ($handler[2] === null) {
$handler[2] = $this;
}
$handler[2]->$handler[1]($payload);
$name = $handler[1];
$handler[2]->$name($payload);
}
}
foreach ($this->until as $key => $until) {
Expand Down

0 comments on commit f8b4997

Please sign in to comment.