From eb4b9b69f862df8ba23cafc8cd5e4a887baa02f0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 6 May 2019 05:45:35 +0400 Subject: Added worked a class observer Signed-off-by: Valentin Popov --- classes/task/notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/task') diff --git a/classes/task/notify.php b/classes/task/notify.php index faa68a9..bd11f24 100644 --- a/classes/task/notify.php +++ b/classes/task/notify.php @@ -79,7 +79,7 @@ final class notify extends adhoc_task { public function post(record $service, array $data) { $curl = new curl(); $curl->setHeader(['Content-Type: ' . $service->header]); - $curl->post($service->point, $data); + $curl->post($service->point, json_encode($data)); if (defined('PHPUNIT_TEST') && PHPUNIT_TEST) { $this->debug = array_merge($this->debug ?? [], [ -- cgit v1.2.3