Fixed php7.2 count issue

This commit is contained in:
snipe 2018-05-04 21:00:58 -07:00
parent 4812285512
commit a9fc7e04e9

View file

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