From f79cf70a88fffa653ffeb37cf55d5c39229fa8d3 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 4 Sep 2017 15:23:42 +0200 Subject: [PATCH] Missed one setting change --- nntmux/SpotNab.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nntmux/SpotNab.php b/nntmux/SpotNab.php index e4502c63d..678e08920 100755 --- a/nntmux/SpotNab.php +++ b/nntmux/SpotNab.php @@ -235,12 +235,10 @@ class SpotNab .'LVDl'; // Auto-Discovery Flags - $this->_can_broadcast = (trim((int) Settings::settingValue('site.spotnab.spotnabbroadcast')) === 1) ? - true : false; + $this->_can_broadcast = trim((int) Settings::settingValue('site.spotnab.spotnabbroadcast')) === 1; $this->_can_broadcast = ($this->_can_broadcast && $this->_can_post); - $this->_can_discover = (trim((int) Settings::settingValue('spotnabdiscover')) === 1) ? - true : false; + $this->_can_discover = trim((int) Settings::settingValue('site.spotnab.spotnabdiscover')) === 1; if (! $this->has_openssl()) { // Can SpotNab even work; if not, we disable all flags