Browse Source

Fix missing parameter

Daniel Libonati 6 năm trước cách đây
mục cha
commit
78c3fb2952
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/StatsBundle/Controller/StatsController.php

+ 1 - 1
src/StatsBundle/Controller/StatsController.php

@@ -2426,7 +2426,7 @@ class StatsController extends Controller
         
         $from = date("Y-m-d",strtotime('-30 days'));
         $to = date("Y-m-d");
-        
+        $limit = $request->query->get('limit') ?: 30;
         $serializer = $this->container->get('serializer');
         $em = $this->get('doctrine')->getManager();