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