소스 검색

Fix missing parameter

Daniel Libonati 6 년 전
부모
커밋
78c3fb2952
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();