Prevent empty string after $tokens = explode(' ', $search);
This commit is contained in:
parent
ddadaada9d
commit
b2e5b5c44d
|
@ -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…
Reference in New Issue