1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fix artisan:route issue (#3149)

This commit is contained in:
Benjamin Beganović 2019-12-16 12:52:00 +01:00 committed by David Bomba
parent c6e1658ffe
commit 104e8728c2

View File

@ -75,14 +75,13 @@ class ActivityController extends BaseController
*/
public function index(Request $request)
{
$default_activities = $request->has('rows') ? $request->input('rows') : 50;
$default_activities = isset($request->input('rows')) ? $request->input('rows') : 50;
$activities = Activity::orderBy('created_at', 'DESC')->company()
->take($default_activities);
return $this->listResponse($activities);
}
}