Merge pull request #421 from MyIgel/master

Prevent empty string after $tokens = explode(' ', $search);
main
msquare 7 years ago committed by GitHub
commit 0f1da65f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'))) {

Loading…
Cancel
Save