Roman Dmitriev пре 2 година
родитељ
комит
0208734b4a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scripts/eyelib/mysql.pm

+ 1 - 1
scripts/eyelib/mysql.pm

@@ -850,7 +850,7 @@ sub find_mac_in_subnet {
     my $ip = shift;
     my $mac = shift;
     if (!$ip or !$mac) { return; }
-    $ip_subnet = get_ip_subnet($db, $ip);
+    my $ip_subnet = get_ip_subnet($db, $ip);
     if (!$ip_subnet) { return; }
     my @t_auth = get_records_sql($db, "SELECT id,mac,user_id FROM User_auth WHERE ip_int>=" . $ip_subnet->{'ip_int_start'} . " and ip_int<=" . $ip_subnet->{'ip_int_stop'} . " and mac='" . $mac . "' and deleted=0 ORDER BY id");
     my $auth_count = 0;