From 694adb0403c4267d1ea78a136da1cafc935d39b5 Mon Sep 17 00:00:00 2001 From: Matt Bonneau Date: Fri, 18 Jan 2019 10:59:32 -0500 Subject: [PATCH] Correct issue with `exclude_me` --- src/Message/PublishMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Message/PublishMessage.php b/src/Message/PublishMessage.php index cda9497..f128c8c 100644 --- a/src/Message/PublishMessage.php +++ b/src/Message/PublishMessage.php @@ -154,7 +154,7 @@ public function setOptions($options) $options = $this->getOptions(); $this->acknowledge = isset($options->acknowledge) && $options->acknowledge === true; - $this->exclude_me = isset($options->exclude_me) && $options->exclude_me === false; + $this->exclude_me = isset($options->exclude_me) && $options->exclude_me === false ? false : true; $this->exclude = isset($options->exclude) && is_array($options->exclude) ? $options->exclude : []; $this->eligible = isset($options->eligible) && is_array($options->eligible) ? $options->eligible : null; $this->eligible_authroles = []; // default to no auth roles eligible