Skip to content

Commit 8cb8290

Browse files
WebsliceMarius Burkard
authored andcommitted
Fix php warning when adding empty spf
1 parent 01bf506 commit 8cb8290

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/web/dns/dns_spf_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ function onSubmit() {
176176
}
177177

178178
// Create spf-record
179+
$spf_record = [];
180+
179181
if (!empty($this->dataRecord['spf_mx'])) {
180182
$spf_record[] = 'mx';
181183
}

0 commit comments

Comments
 (0)