Fix saving monitor due to MQTT being empty

pull/3588/head
Isaac Connor 2022-09-06 11:22:04 -04:00
parent e088e88e13
commit 813434e0f4
2 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,7 @@ public static function getStatuses() {
'RTSPServer' => array('type'=>'boolean', 'default'=>0),
'RTSPStreamName' => '',
'Importance' => 'Normal',
'MQTT_Enabled' => false,
'MQTT_Enabled' => array('type'=>'boolean','default'=>0),
'MQTT_Subscriptions' => '',
);
private $status_fields = array(

View File

@ -101,6 +101,7 @@ if ($action == 'save') {
'Method' => 'raw',
'GroupIds' => array(),
'LinkedMonitors' => array(),
'MQTT_Enabled' => 0,
'RTSPServer' => 0
);