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

Commit

Permalink
fix(mqtt): repalce empty by isset
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Nov 24, 2017
1 parent c90d96c commit 8333fab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/mqttclient.class.php
Expand Up @@ -238,9 +238,9 @@ protected function getMQTTConnection() {
'mqtt_user',
'mqtt_passwd'
]);
if (empty($config['mqtt_broker_internal_address'])
|| empty($config['mqtt_broker_port']) || empty($config['mqtt_broker_tls_port'])
|| (empty($config['mqtt_tls_for_backend']))) {
if (!isset($config['mqtt_broker_internal_address'])
|| !isset($config['mqtt_broker_port']) || !isset($config['mqtt_broker_tls_port'])
|| (!isset($config['mqtt_tls_for_backend']))) {
Toolbox::logInFile('mqtt', 'at least one MQTT configuration setting is missing');
return false;
} else {
Expand Down

0 comments on commit 8333fab

Please sign in to comment.