From a61e3eb2c0630fbb1d6c3b275bed46655e6a7e8a Mon Sep 17 00:00:00 2001 From: Christopher Huhn Date: Thu, 1 Feb 2018 15:48:59 +0100 Subject: [PATCH 1/2] Fix wrong module name in usage output --- www/modules/ona/subnet.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/modules/ona/subnet.inc.php b/www/modules/ona/subnet.inc.php index 95473d2e..8219dd17 100644 --- a/www/modules/ona/subnet.inc.php +++ b/www/modules/ona/subnet.inc.php @@ -1056,7 +1056,7 @@ function subnet_nextip($options="") { return(array(1, << Date: Thu, 1 Feb 2018 15:58:52 +0100 Subject: [PATCH 2/2] Two more naming errors --- www/modules/ona/subnet.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/modules/ona/subnet.inc.php b/www/modules/ona/subnet.inc.php index 8219dd17..8e72305f 100644 --- a/www/modules/ona/subnet.inc.php +++ b/www/modules/ona/subnet.inc.php @@ -1041,7 +1041,7 @@ function subnet_nextip($options="") { // Version - UPDATE on every edit! $version = '1.00'; - printmsg('DEBUG => subnet_del('.$options.') called', 3); + printmsg('DEBUG => subnet_nextip('.$options.') called', 3); // Parse incoming options string to an array $options = parse_options($options); @@ -1074,7 +1074,7 @@ function subnet_nextip($options="") { } - // Find the subnet record we're deleting + // Find the subnet record list($status, $rows, $subnet) = ona_find_subnet($options['subnet']); if ($status or !$rows) { $self['error'] = "ERROR => Subnet not found";