Commit db79464b authored by Chong Cheung's avatar Chong Cheung Committed by Franco Fichtner

fix #282

parent c4c5f8c0
......@@ -67,7 +67,7 @@ function upnp_validate_port($port) {
}
function validate_form_miniupnpd($post, &$input_errors) {
if(!empty($post['enable']) && (!empty($post['enable_upnp']) && !empty($post['enable_natpmp'])))
if(!empty($post['enable']) && (empty($post['enable_upnp']) && empty($post['enable_natpmp'])))
$input_errors[] = 'At least one of \'UPnP\' or \'NAT-PMP\' must be allowed';
if($post['iface_array'])
foreach($post['iface_array'] as $iface) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment