mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Fixed php7.2 count issue
This commit is contained in:
parent
4812285512
commit
a9fc7e04e9
|
@ -539,9 +539,11 @@ class UsersController extends Controller
|
||||||
{
|
{
|
||||||
$this->authorize('update', User::class);
|
$this->authorize('update', User::class);
|
||||||
|
|
||||||
if ((!Input::has('ids')) || (count(Input::has('ids')) == 0)) {
|
|
||||||
|
|
||||||
|
if ((!Input::has('ids')) || (count(Input::get('ids')) == 0)) {
|
||||||
return redirect()->back()->with('error', 'No users selected');
|
return redirect()->back()->with('error', 'No users selected');
|
||||||
} elseif ((!Input::has('status_id')) || (count(Input::has('status_id')) == 0)) {
|
} elseif ((!Input::has('status_id')) || (Input::get('status_id')=='')) {
|
||||||
return redirect()->route('users.index')->with('error', 'No status selected');
|
return redirect()->route('users.index')->with('error', 'No status selected');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue