cvs: /php4/ext/mcal php3_mcal.c
| From: | Mark Musone | Date: | Tue, 14 Dec 1999 06:23:11 +0000 |
| Subject: | cvs: /php4/ext/mcal php3_mcal.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7901@lists.php.net to get a copy of this message | ||
musone Tue Dec 14 01:23:11 1999 EDT
Modified files:
/php4/ext/mcal php3_mcal.c
Log:
whoops..need to allow 7 parameters also
Index: php4/ext/mcal/php3_mcal.c
diff -u php4/ext/mcal/php3_mcal.c:1.8 php4/ext/mcal/php3_mcal.c:1.9
--- php4/ext/mcal/php3_mcal.c:1.8 Sat Dec 4 14:15:54 1999
+++ php4/ext/mcal/php3_mcal.c Tue Dec 14 01:22:40 1999
@@ -547,7 +547,7 @@
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;
}