Roman Dmitriev 1 год назад
Родитель
Сommit
057f58ccc5
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      html/inc/common.php

+ 3 - 3
html/inc/common.php

@@ -1417,9 +1417,9 @@ function get_device_by_auth($db, $id)
 
 function print_auth_port($db, $port_id, $new_window = FALSE)
 {
-    $d_sql = "SELECT A.ip,A.ip_int,A.mac,A.id,A.dns_name,A.user_id FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
+    $d_sql = "SELECT A.ip, A.ip_int, A.mac, A.id, A.dns_name, A.user_id FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
     $t_auth = mysqli_query($db, $d_sql);
-    while (list($f_ip, $f_int, $f_mac, $f_auth_id, $f_dns, $f_comment, $f_user_id) = mysqli_fetch_array($t_auth)) {
+    while (list($f_ip, $f_int, $f_mac, $f_auth_id, $f_dns, $f_user_id) = mysqli_fetch_array($t_auth)) {
         $name = $f_ip;
         if (!empty($f_dns)) { $name = $f_dns; }
         $title=get_login($db,$f_user_id)." =>".$f_ip."[".$f_mac."]";
@@ -1434,7 +1434,7 @@ function print_auth_port($db, $port_id, $new_window = FALSE)
 
 function get_port_comment($db, $port_id, $port_comment = '')
 {
-    $d_sql = "SELECT A.ip_int,A.comments FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
+    $d_sql = "SELECT A.ip_int, A.comments FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
     $t_auth = mysqli_query($db, $d_sql);
     $comment_found = 0;
     $result = '';