Fix bug where we check for mail dns records without mail being enabled

This commit is contained in:
Johannes Zellner
2017-01-06 12:20:45 +01:00
parent 684e7df939
commit a21210ab29

View File

@@ -448,6 +448,9 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
function getExpectedDnsRecords(callback) {
callback = callback || function (error) { if (error) console.error(error); };
// nothing to check if mail is not enabled
if (!$scope.mailConfig.enabled) return;
Client.getExpectedDnsRecords(function (error, dnsRecords) {
if (error) return callback(error);