mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Admin-UI: Only include IP search-filter when it's an IP.
This commit is contained in:
@@ -3716,7 +3716,11 @@ class e_admin_controller_ui extends e_admin_controller
|
|||||||
|
|
||||||
if($var['type'] == 'ip')
|
if($var['type'] == 'ip')
|
||||||
{
|
{
|
||||||
$filter[] = $var['__tableField']." LIKE '%".e107::getIpHandler()->ipEncode($searchQuery)."%'";
|
$ipSearch = e107::getIpHandler()->ipEncode($searchQuery);
|
||||||
|
if(!empty($ipSearch))
|
||||||
|
{
|
||||||
|
$filter[] = $var['__tableField']." LIKE '%".$ipSearch."%'";
|
||||||
|
}
|
||||||
// Continue below for BC check also.
|
// Continue below for BC check also.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user