diff --git a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php index eebcd36..112c8f0 100644 --- a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php +++ b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php @@ -244,8 +244,8 @@ public static function renderException($e = NULL) public function register(Kdyby\ElasticSearch\Client $client) { $this->client = $client; - $client->onSuccess[] = $this->success; - $client->onError[] = $this->failure; + $client->onSuccess[] = [$this, 'success']; + $client->onError[] = [$this, 'failure']; Debugger::getBar()->addPanel($this); }