mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixes #5519 - count() for php 7.2
This commit is contained in:
parent
233fb23cb8
commit
ef8d2d06df
|
@ -535,15 +535,13 @@ class UsersController extends Controller
|
|||
* @since [v1.0]
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function postBulkSave()
|
||||
public function postBulkSave(Request $request)
|
||||
{
|
||||
$this->authorize('update', User::class);
|
||||
|
||||
|
||||
|
||||
if ((!Input::has('ids')) || (count(Input::get('ids')) == 0)) {
|
||||
if ((!$request->has('ids')) || (count($request->input('ids')) > 0)) {
|
||||
return redirect()->back()->with('error', 'No users selected');
|
||||
} elseif ((!Input::has('status_id')) || (Input::get('status_id')=='')) {
|
||||
} elseif ((!$request->has('status_id')) || ($request->input('status_id')=='')) {
|
||||
return redirect()->route('users.index')->with('error', 'No status selected');
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Reference in a new issue