|
|
@@ -857,7 +857,7 @@ def ban_check(ip = None, tool = None):
|
|
|
band_d = curs.fetchall()
|
|
|
if band_d:
|
|
|
if tool and tool == 'login':
|
|
|
- if data[0][0] != 'O':
|
|
|
+ if band_d[0][0] != 'O':
|
|
|
return 1
|
|
|
else:
|
|
|
return 1
|
|
|
@@ -866,7 +866,7 @@ def ban_check(ip = None, tool = None):
|
|
|
ban_d = curs.fetchall()
|
|
|
if ban_d:
|
|
|
if tool and tool == 'login':
|
|
|
- if data[0][0] != 'O':
|
|
|
+ if ban_d[0][0] != 'O':
|
|
|
return 1
|
|
|
else:
|
|
|
return 1
|