Commit 8bd21e19 authored by Franco Fichtner's avatar Franco Fichtner

Merge pull request #286 from tomcheung789/master

fix #282
parents 042f798d a9287daf
......@@ -66,7 +66,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