1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Admin-UI: Only include IP search-filter when it's an IP.

This commit is contained in:
Cameron 2015-03-31 06:27:16 -07:00
parent 24f2b22e6a
commit 828d77fbdb

View File

@ -3716,7 +3716,11 @@ class e_admin_controller_ui extends e_admin_controller
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.
}