Code style
[civicrm-core.git] / api / v3 / Event.php
index 1866b51e88612a80b9d0e26d252102e922f8d5f6..0126280a9602de25bd8de9990cc3eaeecbaf4fd9 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -208,6 +208,9 @@ function _civicrm_api3_event_getisfull(&$event, $event_id) {
   if (!empty($eventFullResult) && is_int($eventFullResult)) {
     $event[$event_id]['available_places'] = $eventFullResult;
   }
+  elseif (is_null($eventFullResult)) {
+    return $event[$event_id]['is_full'] = 0;
+  }
   else {
     $event[$event_id]['available_places'] = 0;
   }