This repository was archived by the owner on Feb 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public function getRegistrantsMinimum() {
224
224
if (isset ($ this ->getEvent ()->{EventManagerInterface::FIELD_REGISTRATION_REGISTRANTS_MINIMUM })) {
225
225
$ field = $ this ->getEvent ()->{EventManagerInterface::FIELD_REGISTRATION_REGISTRANTS_MINIMUM };
226
226
$ minimum = $ field ->value ;
227
- if ($ minimum !== '' && is_numeric ($ minimum ) && $ minimum >= 1 ) {
227
+ if ($ minimum !== '' && is_numeric ($ minimum ) && $ minimum >= 0 ) {
228
228
return $ minimum ;
229
229
}
230
230
}
@@ -238,7 +238,7 @@ public function getRegistrantsMaximum() {
238
238
if (isset ($ this ->getEvent ()->{EventManagerInterface::FIELD_REGISTRATION_REGISTRANTS_MAXIMUM })) {
239
239
$ field = $ this ->getEvent ()->{EventManagerInterface::FIELD_REGISTRATION_REGISTRANTS_MAXIMUM };
240
240
$ maximum = $ field ->value ;
241
- if ($ maximum !== '' && is_numeric ($ maximum ) && $ maximum >= 1 ) {
241
+ if ($ maximum !== '' && is_numeric ($ maximum ) && $ maximum >= 0 ) {
242
242
return $ maximum ;
243
243
}
244
244
}
Original file line number Diff line number Diff line change @@ -141,15 +141,15 @@ public function remainingCapacity();
141
141
* Get minimum number of registrants allowed per registration.
142
142
*
143
143
* @return integer
144
- * Minimum number of registrants allowed (>= 1 )
144
+ * Minimum number of registrants allowed (>= 0 )
145
145
*/
146
146
public function getRegistrantsMinimum ();
147
147
148
148
/**
149
149
* Get maximum number of registrants allowed per registration.
150
150
*
151
151
* @return integer|EventMetaInterface::CAPACITY_UNLIMITED
152
- * Maximum number of registrants allowed (>= 1 ), or unlimited.
152
+ * Maximum number of registrants allowed (>= 0 ), or unlimited.
153
153
*/
154
154
public function getRegistrantsMaximum ();
155
155
You can’t perform that action at this time.
0 commit comments