diff --git a/src/Pusher.php b/src/Pusher.php index c903cf07..f5c0f0f6 100755 --- a/src/Pusher.php +++ b/src/Pusher.php @@ -535,7 +535,7 @@ public function trigger($channels, $event, $data, $params = array(), $already_en $result = json_decode($response['body']); - if ($result->channels) { + if (property_exists($result, 'channels')) { $result->channels = get_object_vars($result->channels); }