clean up check_mac() interface (ml-cms)

This commit is contained in:
Oliver Gorwits
2018-04-18 19:23:43 +01:00
parent e0d75c3cba
commit 2caae8a642
7 changed files with 20 additions and 13 deletions

View File

@@ -15,9 +15,9 @@ register_admin_task({
sub _sanity_ok {
return 0 unless param('mac')
and check_mac(undef, param('mac'));
and check_mac(param('mac'));
params->{mac} = check_mac(undef, param('mac'));
params->{mac} = check_mac(param('mac'));
return 1;
}