From 2d81659fe71fe9ac69fcf5a423668194ee1b38d5 Mon Sep 17 00:00:00 2001 From: francescbassas Date: Tue, 27 Jun 2017 12:52:52 +0200 Subject: [PATCH] CRM-20775 Wrong is full results for API event get --- api/v3/Event.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/Event.php b/api/v3/Event.php index 500d0ed6a6..5cae5b0574 100644 --- a/api/v3/Event.php +++ b/api/v3/Event.php @@ -208,6 +208,9 @@ function _civicrm_api3_event_getisfull(&$event, $event_id) { if (!empty($eventFullResult) && is_int($eventFullResult)) { $event[$event_id]['available_places'] = $eventFullResult; } + else if (is_null($eventFullResult)) { + return $event[$event_id]['is_full'] = 0; + } else { $event[$event_id]['available_places'] = 0; } -- 2.25.1