소스 검색

fix the bug with events preview when missing org id

Olivier Massot 5 년 전
부모
커밋
07067e5dc4
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      ot_widgets/Classes/Controller/EventController.php

+ 3 - 0
ot_widgets/Classes/Controller/EventController.php

@@ -96,6 +96,9 @@ class EventController extends ActionController
     {
         // Get current settings
         $organizationId = (int) $this->settings['organizationId'];
+        if (!$organizationId) {
+            return;
+        }
 
         // Parse options
         $limit = (int) ($options['eventsLimit'] ?? 5);