summaryrefslogtreecommitdiff
path: root/ext/mcal/php3_mcal.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mcal/php3_mcal.c')
-rw-r--r--ext/mcal/php3_mcal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mcal/php3_mcal.c b/ext/mcal/php3_mcal.c
index 3d37c17482..72567a30df 100644
--- a/ext/mcal/php3_mcal.c
+++ b/ext/mcal/php3_mcal.c
@@ -547,7 +547,7 @@ void php3_mcal_list_events(INTERNAL_FUNCTION_PARAMETERS)
datetime_t startdate=DT_INIT;
datetime_t enddate=DT_INIT;
myargc=ARG_COUNT(ht);
- if (myargc !=1 || getParameters(ht,myargc,&streamind,&startyear,&startmonth,&startday,&endyear,&endmonth,&endday) == FAILURE) {
+ if ((myargc !=1 && myargc !=7)|| getParameters(ht,myargc,&streamind,&startyear,&startmonth,&startday,&endyear,&endmonth,&endday) == FAILURE) {
WRONG_PARAM_COUNT;
}