Bernd Wurst commited on 2019-01-04 15:37:42
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.
| ... | ... |
@@ -271,8 +271,8 @@ function save_dns_record($id, $record) |
| 271 | 271 |
case 'mx': |
| 272 | 272 |
$record['dyndns'] = null; |
| 273 | 273 |
$record['spec'] = (int) $record['spec']; |
| 274 |
- if ($record['spec'] < 1) {
|
|
| 275 |
- systen_failure("invalid priority");
|
|
| 274 |
+ if ($record['spec'] < 0) {
|
|
| 275 |
+ system_failure("invalid priority");
|
|
| 276 | 276 |
} |
| 277 | 277 |
verify_input_hostname($record['data']); |
| 278 | 278 |
if (! $record['data']) {
|
| 279 | 279 |