Prevent empty string after $tokens = explode(' ', $search);

This commit is contained in:
Igor Scheller 2017-12-28 14:17:42 +01:00
parent ddadaada9d
commit b2e5b5c44d
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ function admin_arrive()
if ($request->has('search')) { if ($request->has('search')) {
$search = strip_request_item('search'); $search = strip_request_item('search');
$search = trim($search);
} }
if ($request->has('reset') && preg_match('/^\d+$/', $request->input('reset'))) { if ($request->has('reset') && preg_match('/^\d+$/', $request->input('reset'))) {