Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(mqtt): configuration check when sending a message
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and ajsb85 committed Nov 22, 2017
1 parent bee0099 commit 4f8fb15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/mqttclient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ protected function getMQTTConnection() {
]);
if (empty($config['mqtt_broker_internal_address'])
|| empty($config['mqtt_broker_port']) || empty($config['mqtt_broker_tls_port'])
|| (!isset($config['mqtt_tls_for_backend']))) {
|| (isset($config['mqtt_tls_for_backend']))) {
Toolbox::logInFile('mqtt', 'at least one MQTT configuration setting is missing');
return false;
} else {
$mqttBrokerAddress = $config['mqtt_broker_internal_address'];
Expand Down

0 comments on commit 4f8fb15

Please sign in to comment.