Commit 567a2537 authored by yaleman's avatar yaleman
Browse files

fix for #28

parent 1ef2f59f
......@@ -762,7 +762,7 @@ class phpipamAgent extends Common_functions {
// int check
if(!is_numeric($subnetId)) { return false; }
// check
try { $count = $this->Database->numObjectsFilter("subnets", "masterSubnetId", $subnetid); }
try { $count = $this->Database->numObjectsFilter("subnets", "masterSubnetId", $subnetId); }
catch (Exception $e) {
$this->Result->show("danger", _("Error: ").$e->getMessage());
return false;
......
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