瀏覽代碼

fixed enable filter for all ip form

rajven 2 年之前
父節點
當前提交
c3a5275058
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      html/admin/iplist/index.php

+ 2 - 3
html/admin/iplist/index.php

@@ -25,11 +25,10 @@ if ($rsubnet == 0) { $subnet_filter = ''; } else {
 
 
 $enabled_filter='';
 $enabled_filter='';
 if ($enabled>0) {
 if ($enabled>0) {
-    if ($enabled===2) { $enabled_filter = ' and User_auth.enabled=1'; }
-    if ($enabled===1) { $enabled_filter = ' and User_auth.enabled=0'; }
+    if ($enabled===2) { $enabled_filter = ' and (User_auth.enabled=1 and User_list.enabled=1)'; }
+    if ($enabled===1) { $enabled_filter = ' and (User_auth.enabled=0 or User_list.enabled=0)'; }
     }
     }
 
 
-
 if (isset($_POST['ip'])) { $f_ip = $_POST['ip']; }
 if (isset($_POST['ip'])) { $f_ip = $_POST['ip']; }
 if (!isset($f_ip) and isset($_SESSION[$page_url]['ip'])) { $f_ip=$_SESSION[$page_url]['ip']; }
 if (!isset($f_ip) and isset($_SESSION[$page_url]['ip'])) { $f_ip=$_SESSION[$page_url]['ip']; }
 if (!isset($f_ip)) { $f_ip=''; }
 if (!isset($f_ip)) { $f_ip=''; }