Revision 79851fc8
Added by Ermal LUÇI almost 15 years ago
usr/local/www/interfaces.php | ||
---|---|---|
360 | 360 |
$iflist = get_configured_interface_with_descr(false, true); |
361 | 361 |
/* description unique? */ |
362 | 362 |
foreach ($iflist as $ifent => $ifdescr) { |
363 |
if ($if != $ifent && $ifdescr == $_POST['descr']) |
|
363 |
if ($if != $ifent && $ifdescr == $_POST['descr']) {
|
|
364 | 364 |
$input_errors[] = gettext("An interface with the specified description already exists."); |
365 |
break; |
|
366 |
} |
|
365 | 367 |
} |
366 | 368 |
/* input validation */ |
367 | 369 |
if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]['enable']) && $_POST['type'] != "static") |
Also available in: Unified diff
Small optimization.